File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/java/com/android/internal/app Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments