Skip to content

Commit d03e2a1

Browse files
committed
Check ACCOUNT_NAME to current auth app name
1 parent d7d5327 commit d03e2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/mobile/accounts/AccountAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public Bundle getAuthToken(AccountAuthenticatorResponse response,
111111
try {
112112
List<Authorization> auths = oAuthService.getAuthorizations();
113113
for (Authorization auth : auths)
114-
if (auth.getApp().getName().equals(ACCOUNT_NAME))
114+
if (ACCOUNT_NAME.equals(auth.getApp().getName()))
115115
authToken = auth.getToken();
116116

117117
// Setup authorization for app if others didn't exist.

0 commit comments

Comments
 (0)