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

Commit 02a9c359 authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

am e202fff5: Merge "Stop sending broadcasts to RecentsActivity before boot has...

am e202fff5: Merge "Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)" into lmp-preview-dev

* commit 'e202fff5f77568294ba4b50c879ca587535db3be':
  Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)
parents 0044b20e 91b7d2b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ class SystemUIMessageHandler extends Handler {
            // Send a broadcast to hide recents
            Intent intent = new Intent(RecentsService.ACTION_HIDE_RECENTS_ACTIVITY);
            intent.setPackage(context.getPackageName());
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
            if (msg.arg1 != 0) {
                intent.putExtra(RecentsService.EXTRA_TRIGGERED_FROM_ALT_TAB, true);
            }
@@ -129,6 +130,7 @@ class SystemUIMessageHandler extends Handler {
            // Send a broadcast to toggle recents
            Intent intent = new Intent(RecentsService.ACTION_TOGGLE_RECENTS_ACTIVITY);
            intent.setPackage(context.getPackageName());
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
            context.sendBroadcast(intent);

            // Time this path
@@ -140,6 +142,7 @@ class SystemUIMessageHandler extends Handler {
            // Send a broadcast to start the enter animation
            Intent intent = new Intent(RecentsService.ACTION_START_ENTER_ANIMATION);
            intent.setPackage(context.getPackageName());
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
            context.sendBroadcast(intent);
        }
    }