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

Commit 691a6189 authored by d34d's avatar d34d Committed by Gerrit Code Review
Browse files

SysUI: Fix notification panel alignment after theme change

After a theme change the notification panel is shifted to the left
when it is first expanded.  Collapsing and re-expanding the panel
corrects the issue.

If we call instantCollapseNotificationPanel() after recreating the
status bar, the misalignment is resolved.

Change-Id: I4493441d64048d119e6055674737502e62f1db71
TICKET: CYNGNOS-1585
parent 7cb61678
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3705,6 +3705,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

        mQSPanel.getHost().setCustomTileListenerService(null);

        // fix notification panel being shifted to the left by calling
        // instantCollapseNotificationPanel()
        instantCollapseNotificationPanel();

        mStatusBarWindow.requestLayout();
        mStatusBarWindow.getViewTreeObserver().addOnGlobalLayoutListener(
                new ViewTreeObserver.OnGlobalLayoutListener() {