From e8c299348bd3d5ec7ca52cdfc9e995d5aeeab2bd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 24 Aug 2018 14:09:46 +0200 Subject: Fixed unauthorized access being recognized as serverError --- app/src/main/java/com/no_name/no_name/InitialActivity.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/no_name/no_name/InitialActivity.kt b/app/src/main/java/com/no_name/no_name/InitialActivity.kt index ee25d3d..80ca5a7 100644 --- a/app/src/main/java/com/no_name/no_name/InitialActivity.kt +++ b/app/src/main/java/com/no_name/no_name/InitialActivity.kt @@ -43,6 +43,7 @@ class InitialActivity : AppCompatActivity() { val (_, serverError) = result when { response.httpStatusCode == 200 -> startActivity() + response.httpStatusCode == 401 -> startActivity() !isConnected() -> startActivity("notConnected" to true) serverError != null -> startActivity("serverDown" to true) else -> startActivity() -- cgit v1.2.3