Skip to content

Commit 7b87999

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "Fix issue #7238170: Edit picture option is not available for the secondary user." into jb-mr1-dev
2 parents bf18487 + 4d5c2b0 commit 7b87999

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/java/com/android/internal/app/ResolverActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,10 @@ private void rebuildList() {
436436
if (mBaseResolveList != null) {
437437
mCurrentResolveList = mBaseResolveList;
438438
} else {
439-
mCurrentResolveList = mPm.queryIntentActivities(
439+
mCurrentResolveList = mPm.queryIntentActivitiesAsUser(
440440
mIntent, PackageManager.MATCH_DEFAULT_ONLY
441-
| (mAlwaysUseOption ? PackageManager.GET_RESOLVED_FILTER : 0));
441+
| (mAlwaysUseOption ? PackageManager.GET_RESOLVED_FILTER : 0),
442+
UserHandle.getUserId(mLaunchedFromUid));
442443
// Filter out any activities that the launched uid does not
443444
// have permission for. We don't do this when we have an explicit
444445
// list of resolved activities, because that only happens when

0 commit comments

Comments
 (0)