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

Commit e76735cc authored by Sravan Kumar Reddy Kallu's avatar Sravan Kumar Reddy Kallu
Browse files

Revert "Send display-OFF event if that is initial state."

This reverts commit a60654e0.

Reason for revert: Causing BootTime metric regression b/181194873

"Exempt-From-Owner-Approval: see go/perf-revert-first”

Change-Id: I920766dc8b046bb12fe9421b5ff70dddc8e73d9e
parent a60654e0
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -718,12 +718,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
                            }
                        }