Skip to content

Commit bd7e6fb

Browse files
renamed ResultCode
1 parent d47e76c commit bd7e6fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/gplay/java/com/owncloud/android/utils/PushUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ public static void pushRegistrationToServer() {
248248
gson.toJson(pushArbitraryData));
249249
}
250250
} else if (remoteOperationResult.getCode() ==
251-
RemoteOperationResult.ResultCode.ACCOUNT_USES_OLD_LOGIN) {
251+
RemoteOperationResult.ResultCode.ACCOUNT_USES_STANDARD_PASSWORD) {
252252
arbitraryDataProvider.storeOrUpdateKeyValue(account.name,
253-
AccountUtils.ACCOUNT_USES_OLD_LOGIN, "true");
253+
AccountUtils.ACCOUNT_USES_STANDARD_PASSWORD, "true");
254254
}
255255
} catch (com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException e) {
256256
Log_OC.d(TAG, "Failed to find an account");

src/main/java/com/owncloud/android/authentication/AccountUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class AccountUtils {
5252

5353
public static final int ACCOUNT_VERSION = 1;
5454
public static final int ACCOUNT_VERSION_WITH_PROPER_ID = 2;
55-
public static final String ACCOUNT_USES_OLD_LOGIN = "ACCOUNT_USES_OLD_LOGIN";
55+
public static final String ACCOUNT_USES_STANDARD_PASSWORD = "ACCOUNT_USES_STANDARD_PASSWORD";
5656

5757
/**
5858
* Can be used to get the currently selected ownCloud {@link Account} in the

src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void onRefresh() {
154154
ArbitraryDataProvider arbitraryDataProvider = new ArbitraryDataProvider(getContentResolver());
155155

156156
boolean usesOldLogin = arbitraryDataProvider.getBooleanValue(account.name,
157-
AccountUtils.ACCOUNT_USES_OLD_LOGIN);
157+
AccountUtils.ACCOUNT_USES_STANDARD_PASSWORD);
158158

159159
if (usesOldLogin) {
160160
Snackbar.make(emptyContentContainer, R.string.push_notifications_old_login,

0 commit comments

Comments
 (0)