From 7c699daec04f6624c1886b4e35d49f0773ab9f5a Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 4 Sep 2019 16:26:51 +0200 Subject: [PATCH] Forgot password mode: enable the button if HS is changed --- vector/src/main/java/im/vector/activity/LoginActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/activity/LoginActivity.java b/vector/src/main/java/im/vector/activity/LoginActivity.java index 02b18c887b..46b454a6cf 100644 --- a/vector/src/main/java/im/vector/activity/LoginActivity.java +++ b/vector/src/main/java/im/vector/activity/LoginActivity.java @@ -2122,7 +2122,7 @@ public void onMatrixError(MatrixError e) { */ private void checkLoginFlows() { // check only login flows - if (mMode != MODE_LOGIN) { + if (mMode != MODE_LOGIN && mMode != MODE_FORGOT_PASSWORD) { return; } @@ -2141,7 +2141,7 @@ public void onSuccess(List flows) { // stop listening to network state removeNetworkStateNotificationListener(); - if (mMode == MODE_LOGIN) { + if (mMode == MODE_LOGIN || mMode == MODE_FORGOT_PASSWORD) { enableLoadingScreen(false); setActionButtonsEnabled(true); @@ -2182,7 +2182,7 @@ public void onSuccess(List flows) { } private void onError(String errorMessage) { - if (mMode == MODE_LOGIN) { + if (mMode == MODE_LOGIN || mMode == MODE_FORGOT_PASSWORD) { enableLoadingScreen(false); setActionButtonsEnabled(false); displayErrorOnUrl(mHomeServerTextTil, errorMessage);