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

Commit 31a2e1ba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Also call Intent#fixUris for the intent resolver case" into rvc-dev

parents 48c40af5 7c510c22
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3043,10 +3043,6 @@ public class ChooserActivity extends ResolverActivity implements
        currentRootAdapter.updateDirectShareExpansion();
    }

    void prepareIntentForCrossProfileLaunch(Intent intent) {
        intent.fixUris(UserHandle.myUserId());
    }

    @Override
    protected WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
        if (shouldShowTabs()) {
+3 −1
Original line number Diff line number Diff line
@@ -1250,7 +1250,9 @@ public class ResolverActivity extends Activity implements
        return true;
    }

    void prepareIntentForCrossProfileLaunch(Intent intent) {}
    private void prepareIntentForCrossProfileLaunch(Intent intent) {
        intent.fixUris(UserHandle.myUserId());
    }

    private boolean isLaunchingTargetInOtherProfile() {
        return mMultiProfilePagerAdapter.getCurrentUserHandle().getIdentifier()