mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fixed creation of OwnCloudClientManager instances
This commit is contained in:
parent
e069a8cb9f
commit
17d810fe2b
@ -16,10 +16,10 @@ public class OwnCloudClientManagerFactory {
|
||||
public static OwnCloudClientManager newOwnCloudClientManager(Policy policy) {
|
||||
switch (policy) {
|
||||
case ALWAYS_NEW_CLIENT:
|
||||
return new SingleSessionManager();
|
||||
return new SimpleFactoryManager();
|
||||
|
||||
case SINGLE_SESSION_PER_ACCOUNT:
|
||||
return new SimpleFactoryManager();
|
||||
return new SingleSessionManager();
|
||||
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown policy");
|
||||
|
Loading…
x
Reference in New Issue
Block a user