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

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

Merge "Refactor deleteWakeupFromUserStarts in UserWakeupStore" into main

parents 183e7f3c 74a895c5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -206,14 +206,14 @@ public class UserWakeupStore {
     * @return true if an entry is found and the list of wakeups changes.
     */
    private boolean deleteWakeupFromUserStarts(int userId) {
        int index;
        synchronized (mUserWakeupLock) {
            index = mUserStarts.indexOfKey(userId);
            final int index = mUserStarts.indexOfKey(userId);
            if (index >= 0) {
                mUserStarts.removeAt(index);
                return true;
            }
            return false;
        }
        return index >= 0;
    }

    /**