Selaa lähdekoodia

Merge pull request #2541 from nextcloud/accountauthenticator-overrides

authentication: Added @Override annotations to applicable methods.
Andy Scherzinger 7 vuotta sitten
vanhempi
commit
cd6449888d

+ 6 - 4
src/main/java/com/owncloud/android/authentication/AccountAuthenticatorActivity.java

@@ -49,12 +49,13 @@ public class AccountAuthenticatorActivity extends AppCompatActivity {
     }
 
     /**
-     * Retreives the AccountAuthenticatorResponse from either the intent of the icicle, if the
+     * Retrieves the AccountAuthenticatorResponse from either the intent of the icicle, if the
      * icicle is non-zero.
-     * @param icicle the save instance data of this Activity, may be null
+     * @param savedInstanceState the save instance data of this Activity, may be null
      */
-    protected void onCreate(Bundle icicle) {
-        super.onCreate(icicle);
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
 
         mAccountAuthenticatorResponse =
                 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE);
@@ -67,6 +68,7 @@ public class AccountAuthenticatorActivity extends AppCompatActivity {
     /**
      * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present.
      */
+    @Override
     public void finish() {
         if (mAccountAuthenticatorResponse != null) {
             // send the result bundle back if set, otherwise send an error.