Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 18b0abb

Browse files
committed
Apply CR changes
1 parent bec5643 commit 18b0abb

File tree

1 file changed

+3
-1
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts

1 file changed

+3
-1
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static OwnCloudCredentials getCredentialsForAccount(Context context, Acco
139139
AccountManager am = AccountManager.get(context);
140140

141141
String supportsOAuth2 = am.getUserData(account, AccountUtils.Constants.KEY_SUPPORTS_OAUTH2);
142-
boolean isOauth2 = supportsOAuth2 != null && supportsOAuth2.equals("TRUE");
142+
boolean isOauth2 = supportsOAuth2 != null && supportsOAuth2.equals(Constants.OAUTH_SUPPORTED_TRUE);
143143

144144
String username = AccountUtils.getUsernameForAccount(account);
145145

@@ -294,6 +294,8 @@ public static class Constants {
294294
*/
295295
public static final String KEY_SUPPORTS_OAUTH2 = "oc_supports_oauth2";
296296

297+
public static final String OAUTH_SUPPORTED_TRUE = "TRUE";
298+
297299
/**
298300
* OC account cookies
299301
*/

0 commit comments

Comments
 (0)