From 06f713b5ee38b93ca33aec46d86c92865d3c8e4c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 3 Sep 2018 01:29:16 +0200 Subject: Added basic introduction activity --- app/src/main/java/me/texx/Texx/RoutingActivity.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/me/texx/Texx/RoutingActivity.kt') 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() + } + } /** -- cgit v1.2.3