From 4cc197ddc5cd09fee46e1d1911a760b1e74284cc Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 28 Aug 2018 18:47:12 +0200 Subject: [PATCH] correctly hide the loading indicator when instance returns an error on login --- app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt index c5c1e84c..5480b580 100644 --- a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt @@ -154,6 +154,7 @@ class LoginActivity : AppCompatActivity(), Injectable { if (!response.isSuccessful) { loginButton.isEnabled = true domainEditText.error = getString(R.string.error_failed_app_registration) + setLoading(false) Log.e(TAG, "App authentication failed. " + response.message()) return }