From 1ee78f8c7a3ec10153e6f1f7ff1b9e8e08e70328 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Wed, 25 Oct 2017 15:08:49 +0200 Subject: [PATCH] fix error after rebase --- .../android/authentication/AuthenticatorActivity.java | 7 +++++++ .../android/ui/dialog/CredentialsDialogFragment.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java index 640297b6fb..9fb8f59281 100644 --- a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -2308,4 +2308,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity mIsFirstAuthAttempt = false; } } + + /** + * For retrieving the clicking on authentication cancel button. + */ + public void doNegativeAuthenticationDialogClick() { + mIsFirstAuthAttempt = true; + } } diff --git a/src/main/java/com/owncloud/android/ui/dialog/CredentialsDialogFragment.java b/src/main/java/com/owncloud/android/ui/dialog/CredentialsDialogFragment.java index adb647d1e6..2fd4d775e1 100644 --- a/src/main/java/com/owncloud/android/ui/dialog/CredentialsDialogFragment.java +++ b/src/main/java/com/owncloud/android/ui/dialog/CredentialsDialogFragment.java @@ -139,7 +139,7 @@ public class CredentialsDialogFragment extends DialogFragment } else if (which == AlertDialog.BUTTON_NEGATIVE) { mWebView.stopLoading(); - ((AuthenticatorActivity)getActivity()).doNegativeAuthenticatioDialogClick(); + ((AuthenticatorActivity)getActivity()).doNegativeAuthenticationDialogClick(); } dialog.dismiss();