Merge "Make GlobalKeyManager broadcasts send as foreground" into lmp-sprout-dev

This commit is contained in:
Justin Koh
2014-10-09 20:49:02 +00:00
committed by Android (Google) Code Review

View File

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