Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b823f7 authored by Justin Koh's avatar Justin Koh
Browse files

Make GlobalKeyManager broadcasts send as foreground

Should prioritize these since they are due to user interaction.

Change-Id: If36d5502dbd53de6102b05fd54caed56e22685da
parent e73bb6e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;