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

Commit 802515db authored by Danesh M's avatar Danesh M
Browse files

Ribbons : Cleanup for theme change

When theme is changed, the status bar window is recreated.
In such cases, we should cleanup any existing instances of ribbon
and re-create it.

Change-Id: I55b0ea71034aaed7ff88eea3f2488dae0cef4111
parent d8bfdb9d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -758,6 +758,8 @@ public class PhoneStatusBar extends BaseStatusBar {
            mQuickAccessLayoutLinked = Settings.System.getIntForUser(resolver,
                    Settings.System.QS_QUICK_ACCESS_LINKED, 1, UserHandle.USER_CURRENT) == 1;
            if (mHasQuickAccessSettings) {
                cleanupRibbon();
                mRibbonView = null;
                inflateRibbon();
            }
        }