Browse Source

Finish LoginActivity on successful login to prevent backpressing back to it.

housekeeping/remove-warnings
Antoine POPINEAU 5 years ago
parent
commit
e4e91cd013
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 1
      app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt

1
app/src/main/java/com/github/apognu/otter/activities/LoginActivity.kt

@ -78,6 +78,7 @@ class LoginActivity : AppCompatActivity() { @@ -78,6 +78,7 @@ class LoginActivity : AppCompatActivity() {
dialog.dismiss()
startActivity(Intent(this@LoginActivity, MainActivity::class.java))
finish()
},
{ error ->
dialog.dismiss()

Loading…
Cancel
Save