Merge "Also call Intent#fixUris for the intent resolver case" into rvc-dev am: 31a2e1ba46 am: 7b69285f87

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11689597

Change-Id: Ic0f2eb6bf2d56640804732eccefe9a2181282e1d
This commit is contained in:
TreeHugger Robot
2020-06-03 19:30:36 +00:00
committed by Automerger Merge Worker
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()