diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/activities/LoginActivity.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/LoginActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/LoginActivity.kt index 9540636a..b5521e3e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/LoginActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/LoginActivity.kt @@ -93,7 +93,7 @@ class LoginActivity : BaseActivity() { FbCookie.save(cookie.id) web.fadeOut(onFinish = { profile.fadeIn() - launch { loadInfo(cookie) } + this@LoginActivity.launch { loadInfo(cookie) } }) } } @@ -108,9 +108,10 @@ class LoginActivity : BaseActivity() { val imageDeferred = async { loadProfile(cookie.id) } val nameDeferred = async { loadUsername(cookie) } - val foundImage = imageDeferred.await() - val name = nameDeferred.await() + val name: String = nameDeferred.await() + val foundImage: Boolean = imageDeferred.await() + L._d { "Logged in and received data" } refresh(false) if (!foundImage) { |