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

This commit is contained in:
Sudheer Shanka
2023-01-28 05:57:44 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}