Merge "Increase priority for broadcast intent triggered by HW key" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-09-26 19:20:38 +00:00
committed by Android (Google) Code Review

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);