mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Once again, disable session based client
This commit is contained in:
parent
eb5b37efb2
commit
340428d820
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ public class MainApp extends Application {
|
|||
boolean isSamlAuth = AUTH_ON.equals(getString(R.string.auth_method_saml_web_sso));
|
||||
|
||||
OwnCloudClientManagerFactory.setUserAgent(getUserAgent());
|
||||
if (isSamlAuth) {
|
||||
OwnCloudClientManagerFactory.setDefaultPolicy(Policy.SINGLE_SESSION_PER_ACCOUNT);
|
||||
} else {
|
||||
OwnCloudClientManagerFactory.setDefaultPolicy(Policy.ALWAYS_NEW_CLIENT);
|
||||
}
|
||||
|
||||
// initialise thumbnails cache on background thread
|
||||
new ThumbnailsCacheManager.InitDiskCacheTask().execute();
|
||||
|
|
Loading…
Reference in a new issue