diff options
Diffstat (limited to 'app/src/main/java/me/texx/Texx/RoutingActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/RoutingActivity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 -> |