am a53995be: am d853a900: am 1840bfee: Merge "Make GlobalKeyManager broadcasts send as foreground" into lmp-sprout-dev

* commit 'a53995be1d6f91c3415ed59f839275d81c73d2b4':
  Make GlobalKeyManager broadcasts send as foreground
This commit is contained in:
Justin Koh
2014-10-10 17:14:45 +00:00
committed by Android Git Automerger

View File

@@ -73,6 +73,7 @@ final class GlobalKeyManager {
if (component != null) { if (component != null) {
Intent intent = new Intent(Intent.ACTION_GLOBAL_BUTTON) Intent intent = new Intent(Intent.ACTION_GLOBAL_BUTTON)
.setComponent(component) .setComponent(component)
.setFlags(Intent.FLAG_RECEIVER_FOREGROUND)
.putExtra(Intent.EXTRA_KEY_EVENT, event); .putExtra(Intent.EXTRA_KEY_EVENT, event);
context.sendBroadcastAsUser(intent, UserHandle.CURRENT, null); context.sendBroadcastAsUser(intent, UserHandle.CURRENT, null);
return true; return true;