Fix issue #7238170: Edit picture option is not available for the secondary user.

Change-Id: Icb3229f543f286afb4a31e267099eceaa0cca11d
This commit is contained in:
Dianne Hackborn
2012-09-26 15:10:30 -07:00
parent 2fd6cb0439
commit 4d5c2b0317

View File

@@ -436,9 +436,10 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte
if (mBaseResolveList != null) {
mCurrentResolveList = mBaseResolveList;
} else {
mCurrentResolveList = mPm.queryIntentActivities(
mCurrentResolveList = mPm.queryIntentActivitiesAsUser(
mIntent, PackageManager.MATCH_DEFAULT_ONLY
| (mAlwaysUseOption ? PackageManager.GET_RESOLVED_FILTER : 0));
| (mAlwaysUseOption ? PackageManager.GET_RESOLVED_FILTER : 0),
UserHandle.getUserId(mLaunchedFromUid));
// Filter out any activities that the launched uid does not
// have permission for. We don't do this when we have an explicit
// list of resolved activities, because that only happens when