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

This commit is contained in:
TreeHugger Robot
2020-06-03 19:16:31 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 5 deletions

View File

@@ -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()) {

View File

@@ -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()