Browse Source

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

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

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

@ -107,7 +107,8 @@ class LoginActivity : AppCompatActivity() { @@ -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))

Loading…
Cancel
Save