mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-26 23:50:13 +00:00
Include fix to switch credentials properly
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user