diff options
author | Marvin Borner | 2018-08-30 01:35:45 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-30 01:35:45 +0200 |
commit | 4822eb8ec0390967fc22bf7c92cccd84a5ebba7f (patch) | |
tree | 777dd467c712715c3171f0b1dc548ad2f411dcb5 /app/src/main/java/me/texx/Texx/MainActivity.kt | |
parent | 0dd4348c5c88aed413cb365cdd3d529276ef03a3 (diff) |
Fixed loading screen still visible after server error exit
Diffstat (limited to 'app/src/main/java/me/texx/Texx/MainActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/MainActivity.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/me/texx/Texx/MainActivity.kt b/app/src/main/java/me/texx/Texx/MainActivity.kt index e428708..8473efa 100644 --- a/app/src/main/java/me/texx/Texx/MainActivity.kt +++ b/app/src/main/java/me/texx/Texx/MainActivity.kt @@ -28,8 +28,9 @@ class MainActivity : AppCompatActivity() { if (intent.getBooleanExtra("serverDown", false)) { alert("We are sorry, but our servers do not seem to be working at the moment. Please wait a few minutes before you try again.", "Sorry") { + isCancelable = false positiveButton("Okay") { - finishAffinity() // TODO: Loading activity will somehow still be opened after close + finishAndRemoveTask() System.exit(0) } }.show() |