mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Fixed navigation to 'all files' to grant correct reuse of existing FileDisplayActivity in current task
This commit is contained in:
parent
2eb6303b96
commit
04dc4b2f45
1 changed files with 1 additions and 2 deletions
|
@ -73,7 +73,6 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
|||
import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.lib.resources.status.OCCapability;
|
||||
import com.owncloud.android.operations.CreateShareViaLinkOperation;
|
||||
import com.owncloud.android.operations.CreateShareWithShareeOperation;
|
||||
import com.owncloud.android.operations.GetSharesForFileOperation;
|
||||
import com.owncloud.android.operations.SynchronizeFileOperation;
|
||||
|
@ -87,7 +86,6 @@ import com.owncloud.android.ui.NavigationDrawerItem;
|
|||
import com.owncloud.android.ui.adapter.NavigationDrawerListAdapter;
|
||||
import com.owncloud.android.ui.dialog.ConfirmationDialogFragment;
|
||||
import com.owncloud.android.ui.dialog.LoadingDialog;
|
||||
import com.owncloud.android.ui.dialog.SharePasswordDialogFragment;
|
||||
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
|
||||
import com.owncloud.android.utils.ErrorMessageAdapter;
|
||||
|
||||
|
@ -1002,6 +1000,7 @@ public class FileActivity extends AppCompatActivity
|
|||
public void restart(){
|
||||
Intent i = new Intent(this, FileDisplayActivity.class);
|
||||
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
startActivity(i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue