Finish LoginActivity on successful login to prevent backpressing back to it.
This commit is contained in:
parent
b735e20fbd
commit
e4e91cd013
|
@ -78,6 +78,7 @@ class LoginActivity : AppCompatActivity() {
|
|||
|
||||
dialog.dismiss()
|
||||
startActivity(Intent(this@LoginActivity, MainActivity::class.java))
|
||||
finish()
|
||||
},
|
||||
{ error ->
|
||||
dialog.dismiss()
|
||||
|
|
Loading…
Reference in New Issue