Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 681df717 authored by Aditya Singh's avatar Aditya Singh Committed by Automerger Merge Worker
Browse files

Fix for SAF loophole in the lastAccessedStack. am: 3c94e70a am: 48d645e9

parents 04d09426 48d645e9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -201,6 +201,9 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH
    private void onLastAccessedStackLoaded(@Nullable DocumentStack stack) {
        if (stack == null) {
            loadDefaultLocation();
        } else if (shouldPreemptivelyRestrictRequestedInitialUri(stack.peek().getDocumentUri())) {
            // If the last accessed stack has restricted uri, load default location
            loadDefaultLocation();
        } else {
            mState.stack.reset(stack);
            mActivity.refreshCurrentRootAndDirectory(AnimationView.ANIM_NONE);