Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2160aa3 authored by Justin Weir's avatar Justin Weir
Browse files

Fix NPE

Change-Id: I01c5ae0187d1d0b062b731409cc6fe4ecdfed575
Fixes: 370712578
Flag: EXEMPT bug fix
Test: N/A trivial fix
parent a70cdf69
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -994,7 +994,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
        // be dropped, causing the shade expansion to fail silently. Since the shade doesn't open,
        // it doesn't become visible, and the bounds will never update. Therefore, we must detect
        // the incorrect bounds here and force the update so that touches are routed correctly.
        if (SceneContainerFlag.isEnabled() && mWindowRootView.getVisibility() == View.INVISIBLE) {
        if (SceneContainerFlag.isEnabled()
                && mWindowRootView != null
                && mWindowRootView.getVisibility() == View.INVISIBLE) {
            Rect bounds = newConfig.windowConfiguration.getBounds();
            if (mWindowRootView.getWidth() != bounds.width()) {
                mLogger.logConfigChangeWidthAdjust(mWindowRootView.getWidth(), bounds.width());