瀏覽代碼

renamed ResultCode

tobiaskaminsky 7 年之前
父節點
當前提交
631869e2a2

+ 2 - 2
src/gplay/java/com/owncloud/android/utils/PushUtils.java

@@ -248,9 +248,9 @@ public class PushUtils {
                                             gson.toJson(pushArbitraryData));
                                 }
                             } else if (remoteOperationResult.getCode() ==
-                                    RemoteOperationResult.ResultCode.ACCOUNT_USES_OLD_LOGIN) {
+                                    RemoteOperationResult.ResultCode.ACCOUNT_USES_STANDARD_PASSWORD) {
                                 arbitraryDataProvider.storeOrUpdateKeyValue(account.name,
-                                        AccountUtils.ACCOUNT_USES_OLD_LOGIN, "true");
+                                        AccountUtils.ACCOUNT_USES_STANDARD_PASSWORD, "true");
                             }
                         } catch (com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException e) {
                             Log_OC.d(TAG, "Failed to find an account");

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AccountUtils.java

@@ -52,7 +52,7 @@ public class AccountUtils {
 
     public static final int ACCOUNT_VERSION = 1;
     public static final int ACCOUNT_VERSION_WITH_PROPER_ID = 2;
-    public static final String ACCOUNT_USES_OLD_LOGIN = "ACCOUNT_USES_OLD_LOGIN";
+    public static final String ACCOUNT_USES_STANDARD_PASSWORD = "ACCOUNT_USES_STANDARD_PASSWORD";
 
     /**
      * Can be used to get the currently selected ownCloud {@link Account} in the

+ 1 - 1
src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java

@@ -154,7 +154,7 @@ public class NotificationsActivity extends FileActivity {
             ArbitraryDataProvider arbitraryDataProvider = new ArbitraryDataProvider(getContentResolver());
 
             boolean usesOldLogin = arbitraryDataProvider.getBooleanValue(account.name,
-                    AccountUtils.ACCOUNT_USES_OLD_LOGIN);
+                    AccountUtils.ACCOUNT_USES_STANDARD_PASSWORD);
 
             if (usesOldLogin) {
                 Snackbar.make(emptyContentContainer, R.string.push_notifications_old_login,