renamed ResultCode

This commit is contained in:
tobiaskaminsky 2017-09-20 13:19:00 +02:00 committed by tobiasKaminsky
parent 0aa2aaaab1
commit 631869e2a2
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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

View file

@ -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,