1
0
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:
David A. Velasco 2014-06-12 17:28:10 +02:00
parent e069a8cb9f
commit 17d810fe2b

View File

@ -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");