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

Commit b66bd43b authored by Justin Weir's avatar Justin Weir Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE" into main

parents 8aa0dcaf f2160aa3
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());