Increase priority for broadcast intent triggered by HW key

am: 469e65e37f

Change-Id: I7b2aec06b7d2d0375b2f680e7880ca401684cddd
This commit is contained in:
Hidenari Koshimae
2016-09-26 19:33:25 +00:00
committed by android-build-merger

View File

@@ -150,6 +150,7 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
sendCloseSystemWindows();
// Broadcast an intent that the Camera button was longpressed
Intent intent = new Intent(Intent.ACTION_CAMERA_BUTTON, null);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.putExtra(Intent.EXTRA_KEY_EVENT, event);
mContext.sendOrderedBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF,
null, null, null, 0, null, null);