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

Commit 980fc0e1 authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

Fix NPE in DisplayModeDirector.isDozeState().

Bug: 195754077
Test: atest android.app.activity.ActivityThreadTest
Change-Id: I1ed70ea2c020ab7e9e997e3657b968fb0001164e
parent c4c7e0b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2519,6 +2519,9 @@ public class DisplayModeDirector {

        @Override
        public boolean isDozeState(Display d) {
            if (d == null) {
                return false;
            }
            return Display.isDozeState(d.getState());
        }