Merge "Media button intent should be send to current user only." into mnc-dev

This commit is contained in:
Jean-Michel Trivi
2015-07-20 17:25:27 +00:00
committed by Android (Google) Code Review

View File

@@ -988,7 +988,7 @@ public class MediaSessionService extends SystemService implements Monitor {
keyIntent.putExtra(EXTRA_WAKELOCK_ACQUIRED, keyIntent.putExtra(EXTRA_WAKELOCK_ACQUIRED,
WAKELOCK_RELEASE_ON_FINISHED); WAKELOCK_RELEASE_ON_FINISHED);
} }
getContext().sendOrderedBroadcastAsUser(keyIntent, UserHandle.ALL, getContext().sendOrderedBroadcastAsUser(keyIntent, UserHandle.CURRENT,
null, mKeyEventDone, mHandler, Activity.RESULT_OK, null, null); null, mKeyEventDone, mHandler, Activity.RESULT_OK, null, null);
} }
} }