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

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

Merge "Add defer-until-active policy to certain broadcasts."

parents cbd02b59 4ebb81f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2538,6 +2538,7 @@ public class DeviceIdleController extends SystemService

                final Bundle mostRecentDeliveryOptions = BroadcastOptions.makeBasic()
                        .setDeliveryGroupPolicy(BroadcastOptions.DELIVERY_GROUP_POLICY_MOST_RECENT)
                        .setDeferUntilActive(true)
                        .toBundle();

                mIdleIntent = new Intent(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED);