Add null check for status bar transitions

Test: atest SystemUITests
Bug: 150570478
Change-Id: I4c93a08ddcbe35a95b77012e2345bfa25167be1b
This commit is contained in:
Beverly
2020-03-09 12:24:06 -04:00
committed by Beverly Tai
parent 7e863266aa
commit 63c6c59163

View File

@@ -2333,7 +2333,7 @@ public class StatusBar extends SystemUI implements DemoMode,
void checkBarModes() {
if (mDemoMode) return;
if (mNotificationShadeWindowViewController != null) {
if (mNotificationShadeWindowViewController != null && getStatusBarTransitions() != null) {
checkBarMode(mStatusBarMode, mStatusBarWindowState, getStatusBarTransitions());
}
mNavigationBarController.checkNavBarModes(mDisplayId);