Add Null checks to NavigationBarView

An apparent race condition means that the NavigationBarView tries to
use the NotificationPanelViewController before the StatusBar has
had an opportunity to create it.

Fixes: 156242260
Test: atest SystemUITests
Change-Id: I588fca9eeb3121cab30d714b1c1a55397d2f0da5
This commit is contained in:
Dave Mankoff
2020-06-17 11:35:01 -04:00
parent 721a3ac836
commit 023e5da3c4

View File

@@ -822,7 +822,7 @@ public class NavigationBarView extends FrameLayout implements
*/
public void updateSlippery() {
setSlippery(!isQuickStepSwipeUpEnabled() ||
(mPanelView.isFullyExpanded() && !mPanelView.isCollapsing()));
(mPanelView != null && mPanelView.isFullyExpanded() && !mPanelView.isCollapsing()));
}
private void setSlippery(boolean slippery) {