Explorar o código

Fixed repeated request for create first account when all the accounts where removed after the app was left in an actitivy not root in its task

David A. Velasco %!s(int64=12) %!d(string=hai) anos
pai
achega
3440b8a1d2
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/com/owncloud/android/ui/activity/FileActivity.java

+ 7 - 1
src/com/owncloud/android/ui/activity/FileActivity.java

@@ -224,7 +224,13 @@ public abstract class FileActivity extends SherlockFragmentActivity {
                 Log_OC.e(TAG, "Account creation callback with null bundle");
             }
             if (mAccount == null) {
-                finish();
+                if (isTaskRoot()) {
+                    Log_OC.e(TAG, "FINISHING");
+                    finish();
+                } else {
+                    Log_OC.e(TAG, "MOVING BACK");
+                    moveTaskToBack(true);
+                }
             }
         }