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

Commit 16f93725 authored by bsears's avatar bsears Committed by Android (Google) Code Review
Browse files

Merge "Revert "Send display-OFF event if that is initial state."" into sc-dev

parents 4034fc55 e76735cc
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -683,12 +683,7 @@ final class LocalDisplayAdapter extends DisplayAdapter {
                                setDisplayState(Display.STATE_ON);
                                currentState = Display.STATE_ON;
                            } else {
                                if (oldState == Display.STATE_UNKNOWN) {
                                    // There's no guarantee about what the initial state is
                                    // at startup, so we have to set it if previous was UNKNOWN.
                                    setDisplayState(state);
                                }
                                return;
                                return; // old state and new state is off
                            }
                        }