Skip to content

Commit 4d5c2b0

Browse files
author
Dianne Hackborn
committed
Fix issue #7238170: Edit picture option is not available for the secondary user.
Change-Id: Icb3229f543f286afb4a31e267099eceaa0cca11d
1 parent 2fd6cb0 commit 4d5c2b0

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)