From 1ddc1a914d805cc11e6b603fb617ea5fa630e317 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 10 Sep 2018 18:39:52 +0200 Subject: Added text to login screen :sparkles: --- app/src/main/java/me/texx/Texx/RoutingActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 805bf5f..4e11c60 100644 --- a/app/src/main/java/me/texx/Texx/RoutingActivity.kt +++ b/app/src/main/java/me/texx/Texx/RoutingActivity.kt @@ -72,7 +72,7 @@ class RoutingActivity : AppCompatActivity() { private fun verifyLogin() { val accessToken: String? = SecureStorage(this@RoutingActivity).get("access_token") // because it may be the first start // synced function of fuel doesn't work here (#331) -> ugly workaround - if (accessToken != null) { + if (accessToken == null) { val userID = EasyPrefrences(this@RoutingActivity).getString("user_id") "/users/$userID".httpGet() // verify by making request to user api // TODO: More secure way of verifying .responseJson { _, response, result -> -- cgit v1.2.3