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

Commit 9c73c416 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Direct return when remove the sleep token which is non-exist." into main

parents c14791f6 b9bd57e5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2902,10 +2902,9 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
    }

    void removeSleepToken(SleepToken token) {
        if (!mSleepTokens.contains(token.mHashKey)) {
        if (mSleepTokens.removeReturnOld(token.mHashKey) == null) {
            Slog.d(TAG, "Remove non-exist sleep token: " + token + " from " + Debug.getCallers(6));
        }
        mSleepTokens.remove(token.mHashKey);
        final DisplayContent display = getDisplayContent(token.mDisplayId);
        if (display == null) {
            Slog.d(TAG, "Remove sleep token for non-existing display: " + token + " from "