Merge "Fix NPE in DisplayModeDirector.isDozeState()." into sc-dev
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