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
1 changed files with 2 additions and 1 deletions

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))