Merge "Send USER_SWITCHED with the correct permission" into jb-mr1-dev

This commit is contained in:
Amith Yamasani
2012-08-17 13:58:17 -07:00
committed by Android (Google) Code Review

View File

@@ -13493,7 +13493,7 @@ public final class ActivityManagerService extends ActivityManagerNative
// Inform of user switch
Intent addedIntent = new Intent(Intent.ACTION_USER_SWITCHED);
addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_ACCOUNTS);
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_USERS);
return true;
}