From 340428d8203fbd348996acdefc576695b19cbbf8 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Tue, 31 Mar 2015 14:29:09 +0200 Subject: [PATCH] Once again, disable session based client --- src/com/owncloud/android/MainApp.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/owncloud/android/MainApp.java b/src/com/owncloud/android/MainApp.java index 0340340aa5..76ecc5e0d7 100644 --- a/src/com/owncloud/android/MainApp.java +++ b/src/com/owncloud/android/MainApp.java @@ -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()); - OwnCloudClientManagerFactory.setDefaultPolicy(Policy.SINGLE_SESSION_PER_ACCOUNT); + 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();