diff options
author | Justin Koh <justinkoh@google.com> | 2014-10-09 13:33:19 -0700 |
---|---|---|
committer | Justin Koh <justinkoh@google.com> | 2014-10-09 13:33:19 -0700 |
commit | b0b823f71b1ef1a50c97a60571bd99acd6c5ddda (patch) | |
tree | 13c42258b18d7c50966cb05961e096c5d5972338 /policy/src | |
parent | e73bb6e059dbd073b09246471b332b6b0e72f191 (diff) | |
download | frameworks_base-b0b823f71b1ef1a50c97a60571bd99acd6c5ddda.zip frameworks_base-b0b823f71b1ef1a50c97a60571bd99acd6c5ddda.tar.gz frameworks_base-b0b823f71b1ef1a50c97a60571bd99acd6c5ddda.tar.bz2 |
Make GlobalKeyManager broadcasts send as foreground
Should prioritize these since they are due to user interaction.
Change-Id: If36d5502dbd53de6102b05fd54caed56e22685da
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/GlobalKeyManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/GlobalKeyManager.java b/policy/src/com/android/internal/policy/impl/GlobalKeyManager.java index 8c8209f..fc65793 100644 --- a/policy/src/com/android/internal/policy/impl/GlobalKeyManager.java +++ b/policy/src/com/android/internal/policy/impl/GlobalKeyManager.java @@ -73,6 +73,7 @@ final class GlobalKeyManager { if (component != null) { Intent intent = new Intent(Intent.ACTION_GLOBAL_BUTTON) .setComponent(component) + .setFlags(Intent.FLAG_RECEIVER_FOREGROUND) .putExtra(Intent.EXTRA_KEY_EVENT, event); context.sendBroadcastAsUser(intent, UserHandle.CURRENT, null); return true; |