1
0
mirror of https://github.com/apognu/otter synced 2025-02-11 00:30:35 +01:00

Login screen would briefly display an dummy error when authentication succeeded.

This commit is contained in:
Antoine POPINEAU 2020-06-23 09:40:18 +02:00
parent 7a72558d1a
commit 1ee9f021ce
No known key found for this signature in database
GPG Key ID: A78AC64694F84063

View File

@ -107,7 +107,8 @@ class LoginActivity : AppCompatActivity() {
Userinfo.get()?.let {
dialog.dismiss()
startActivity(Intent(this@LoginActivity, MainActivity::class.java))
finish()
return@launch finish()
}
throw Exception(getString(R.string.login_error_userinfo))