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

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

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

parents da1c9253 3c94e70a
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);