diff options
author | Marvin Borner | 2018-09-03 01:29:16 +0200 |
---|---|---|
committer | Marvin Borner | 2018-09-03 01:29:16 +0200 |
commit | 06f713b5ee38b93ca33aec46d86c92865d3c8e4c (patch) | |
tree | 378c2c3ed43906aa573fd1f4ce08cf71f416b4f1 /app/src/main/java/me/texx/Texx/RoutingActivity.kt | |
parent | 54f8d30ef2e689bf8d923e85ada7b8aa110ebd52 (diff) |
Added basic introduction activity
Diffstat (limited to 'app/src/main/java/me/texx/Texx/RoutingActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/RoutingActivity.kt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/app/src/main/java/me/texx/Texx/RoutingActivity.kt b/app/src/main/java/me/texx/Texx/RoutingActivity.kt index 9e1c273..d316c07 100644 --- a/app/src/main/java/me/texx/Texx/RoutingActivity.kt +++ b/app/src/main/java/me/texx/Texx/RoutingActivity.kt @@ -28,10 +28,17 @@ class RoutingActivity : AppCompatActivity() { dressCodeName = getThemeName(this) FuelManager.instance.basePath = "http://$serverAddress" - alert("Logging you in.", "Loading...") { - isCancelable = false - }.show() - verifyLogin() + + if (EasyPrefrences(this@RoutingActivity).getBoolean("previously_started")) { + alert("Logging you in.", "Loading...") { + isCancelable = false + }.show() + verifyLogin() + } else { + EasyPrefrences(this@RoutingActivity).putBoolean("previously_started", true) + startActivity<IntroActivity>() + } + } /** |