瀏覽代碼

fix error after rebase

AndyScherzinger 7 年之前
父節點
當前提交
1ee78f8c7a

+ 7 - 0
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;
+    }
 }

+ 1 - 1
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();