mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
renamed ResultCode
This commit is contained in:
parent
0aa2aaaab1
commit
631869e2a2
3 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue