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

This commit is contained in:
Antoine POPINEAU 2019-11-16 17:26:43 +01:00
parent b735e20fbd
commit e4e91cd013
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 1 additions and 0 deletions

View File

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