fix file display, fix syncing, fix authenticator & other stuff
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / authenticator / AuthUtils.java
index e3fc32c..8287e12 100644 (file)
@@ -244,6 +244,9 @@ public class AuthUtils {
                                  break;\r
                          }\r
                  }\r
+         } else if (ocAccounts.length != 0) {\r
+           // we at least need to take first account as fallback\r
+           defaultAccount = ocAccounts[0];\r
          }\r
          \r
        return defaultAccount;\r