mirror of
https://github.com/nextcloud/android.git
synced 2024-10-23 04:26:01 +03:00
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
This commit is contained in:
parent
cf0c96b200
commit
3440b8a1d2
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue