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

Skip to content
Commit 40f71889 authored by Kweku Adams's avatar Kweku Adams
Browse files

Avoid repeated/redundant work.

1. Avoid scheduling the idle alarm if the device is already considered
   idle.
2. Avoid scheduling the idle alarm again if the currently scheduled
   alarm is for the same time.

Bug: 309292340
Test: atest FrameworksMockingServicesTests:DeviceIdlenessTrackerTest
Change-Id: I0cb49041d15e5b2bd880ddc06cb2f1aa95e8c174
parent b1df6237
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment