diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-03 15:02:54 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-03 15:02:54 -0700 |
commit | a5aa87bbaef7d2c937cc89295942882d050c3b5c (patch) | |
tree | c51f9c8c23312fd531edfe10140ac51705094b90 /app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt | |
parent | 0f8f6645339d2a1997b9b444f33ee156a91c2010 (diff) | |
download | frost-a5aa87bbaef7d2c937cc89295942882d050c3b5c.tar.gz frost-a5aa87bbaef7d2c937cc89295942882d050c3b5c.tar.bz2 frost-a5aa87bbaef7d2c937cc89295942882d050c3b5c.zip |
verify links and weboverlay
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt index ad123360..936c237a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt @@ -4,7 +4,6 @@ import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.pitchedapps.frost.dbflow.loadFbCookiesAsync import com.pitchedapps.frost.utils.L -import com.pitchedapps.frost.utils.Prefs import com.pitchedapps.frost.utils.launchNewTask /** @@ -19,7 +18,10 @@ class StartActivity : AppCompatActivity() { loadFbCookiesAsync { cookies -> L.d("Cookies loaded ${System.currentTimeMillis()} $cookies") - launchNewTask(MainActivity::class.java, ArrayList(cookies)) + if (cookies.isNotEmpty()) + launchNewTask(MainActivity::class.java, ArrayList(cookies)) + else + launchNewTask(LoginActivity::class.java) } } }
\ No newline at end of file |