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

Commit 346eb81b authored by Tetiana Meronyk's avatar Tetiana Meronyk Committed by Android (Google) Code Review
Browse files

Merge "Only schedule wakeups when alarm is set outside of user wakeup offset" into main

parents e58c9cd5 49807788
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4495,7 +4495,8 @@ public class AlarmManagerService extends SystemService {
                            final int[] userIds =
                                    mUserWakeupStore.getUserIdsToWakeup(nowELAPSED);
                            for (int i = 0; i < userIds.length; i++) {
                                if (!mActivityManagerInternal.startUserInBackground(
                                if (mActivityManagerInternal.isUserRunning(userIds[i], 0)
                                        || !mActivityManagerInternal.startUserInBackground(
                                                userIds[i])) {
                                    mUserWakeupStore.removeUserWakeup(userIds[i]);
                                }