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

Commit c793991c authored by minaripenguin's avatar minaripenguin Committed by Nishith Khanna
Browse files

SystemUI: Prevent systemui crash when reinflating QS



Change-Id: Ic8b69403b26f5dc123d5a4ad5ef3dc20e0281ab4
Signed-off-by: default avatarminaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
Signed-off-by: default avatarMohammad Hasan Keramat J <ikeramat@protonmail.com>
parent e92a926e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -246,7 +246,9 @@ public abstract class QSPanelControllerBase<T extends QSPanel> extends ViewContr
                    getContext().getResources().getConfiguration()
            );
        }
        if (mView.getTileLayout() != null) {
           setTiles();
        }
        mLastOrientation = getResources().getConfiguration().orientation;
        mLastScreenLayout = getResources().getConfiguration().screenLayout;
        mQSLogger.logOnViewAttached(mLastOrientation, mView.getDumpableTag());
@@ -292,6 +294,7 @@ public abstract class QSPanelControllerBase<T extends QSPanel> extends ViewContr

    /** */
    public void setTiles() {
        if (mHost.getTiles() == null) return;
        setTiles(mHost.getTiles(), false);
    }