summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hyunyoung Song <hyunyoungs@google.com> 2018-10-08 18:40:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-10-08 18:40:36 +0000
commit6725df0b344fbce665c05b74d8c87fd8029c3393 (patch)
treed2e52a6449fab964152039bd7d6bfb86b18b7dfd
parentd7262c9c5fb3326d4c303ce03902de785a11f602 (diff)
parent0cfa37911dd384a03bda3ac7e27f8196b153c54b (diff)
Merge "Add mStatusBarWindowController null check on ACTION_SCREEN_OFF"
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 90ed97f665d5..a7c43cdbf9c5 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -2852,7 +2852,9 @@ public class StatusBar extends SystemUI implements DemoMode,
}
}
else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
- mStatusBarWindowController.setNotTouchable(false);
+ if (mStatusBarWindowController != null) {
+ mStatusBarWindowController.setNotTouchable(false);
+ }
finishBarAnimations();
resetUserExpandedStates();
}