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

Commit 5409ada0 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Add defer-until-active policy to ACTION_SCREEN_ON/OFF."

parents 6ce56923 c2ac4a68
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -240,6 +240,8 @@ public class Notifier {
        options.setDeliveryGroupMatchingKey(
                UUID.randomUUID().toString(),
                Intent.ACTION_SCREEN_ON);
        // This allows the broadcast delivery to be delayed to apps in the Cached state.
        options.setDeferUntilActive(true);
        return options.toBundle();
    }