correctly hide the loading indicator when instance returns an error on login

main
Conny Duck 6 years ago
parent 1f972debff
commit 4cc197ddc5
  1. 1
      app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt

@ -154,6 +154,7 @@ class LoginActivity : AppCompatActivity(), Injectable {
if (!response.isSuccessful) { if (!response.isSuccessful) {
loginButton.isEnabled = true loginButton.isEnabled = true
domainEditText.error = getString(R.string.error_failed_app_registration) domainEditText.error = getString(R.string.error_failed_app_registration)
setLoading(false)
Log.e(TAG, "App authentication failed. " + response.message()) Log.e(TAG, "App authentication failed. " + response.message())
return return
} }

Loading…
Cancel
Save