diff options
| author | 2016-09-26 19:40:51 +0000 | |
|---|---|---|
| committer | 2016-09-26 19:40:51 +0000 | |
| commit | 9820efd2693d422bbf4b85a71f08a2ae7b030aea (patch) | |
| tree | 8bb522ad6861c2ce0cee1abbfc6c39f77a3c4f14 | |
| parent | 330f644a934db62161a7d49d2875f420f15a2dae (diff) | |
| parent | ab8a42f7d979ffdd4fee6e134a35b1a5840003a2 (diff) | |
Increase priority for broadcast intent triggered by HW key am: 469e65e37f
am: ab8a42f7d9
Change-Id: I3891fcfb79919bbf17b937aa8f645cb45d798ce9
| -rw-r--r-- | core/java/com/android/internal/policy/PhoneFallbackEventHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/com/android/internal/policy/PhoneFallbackEventHandler.java b/core/java/com/android/internal/policy/PhoneFallbackEventHandler.java index 2cb9c250d2d1..fb0edea398ce 100644 --- a/core/java/com/android/internal/policy/PhoneFallbackEventHandler.java +++ b/core/java/com/android/internal/policy/PhoneFallbackEventHandler.java @@ -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); |