Merge "Make GlobalKeyManager broadcasts send as foreground" into lmp-sprout-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user