mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Include fix to switch credentials properly
This commit is contained in:
parent
5d3bba65e2
commit
d195b2ff89
@ -224,13 +224,8 @@ public class SingleSessionManager implements OwnCloudClientManager {
|
||||
}
|
||||
|
||||
private void keepCredentialsUpdated(OwnCloudAccount account, OwnCloudClient reusedClient) {
|
||||
OwnCloudCredentials recentCredentials = account.getCredentials();
|
||||
if (recentCredentials != null && !recentCredentials.getAuthToken().equals(
|
||||
reusedClient.getCredentials().getAuthToken())) {
|
||||
reusedClient.setCredentials(recentCredentials);
|
||||
reusedClient.applyCredentials();
|
||||
}
|
||||
}
|
||||
|
||||
private void keepCookiesUpdated(Context context, OwnCloudAccount account, OwnCloudClient reusedClient) {
|
||||
AccountManager am = AccountManager.get(context.getApplicationContext());
|
||||
|
Loading…
x
Reference in New Issue
Block a user