Merge "Fix NPE in DisplayModeDirector.isDozeState()." into sc-dev am: a8547003b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15482816 Change-Id: I00873c998e326316c107109cb294f38ba580fa8f
This commit is contained in:
@@ -2524,6 +2524,9 @@ public class DisplayModeDirector {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDozeState(Display d) {
|
public boolean isDozeState(Display d) {
|
||||||
|
if (d == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return Display.isDozeState(d.getState());
|
return Display.isDozeState(d.getState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user