From e4e91cd01321ff651050b5b7bb7458e71b6390af Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Sat, 16 Nov 2019 17:26:43 +0100 Subject: [PATCH] Finish LoginActivity on successful login to prevent backpressing back to it. --- .../java/com/github/apognu/otter/activities/LoginActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt b/app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt index b09bd38..cba1e1f 100644 --- a/app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt +++ b/app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt @@ -78,6 +78,7 @@ class LoginActivity : AppCompatActivity() { dialog.dismiss() startActivity(Intent(this@LoginActivity, MainActivity::class.java)) + finish() }, { error -> dialog.dismiss()