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

Commit b36459c8 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Update group expander on theme change

So they continue to show a number after reinflation

Test: manual
Flag: EXEMPT bug fix
Fixes: 418980020
Change-Id: I7eb5ca4ce41072068888fed85d1782772613e271
parent 83e70fac
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -572,6 +572,7 @@ public class NotificationChildrenContainer extends ViewGroup

        mGroupHeaderWrapper.setExpanded(mChildrenExpanded);
        mGroupHeaderWrapper.onContentUpdated(mContainingNotification);
        updateGroupOverflow();
        resetHeaderVisibilityIfNeeded(mGroupHeader, calculateDesiredHeader());
        updateHeaderVisibility(false /* animate */);
        updateChildrenAppearance();
@@ -1631,6 +1632,11 @@ public class NotificationChildrenContainer extends ViewGroup
                mMinimizedGroupHeader = null;
            }
            recreateNotificationHeader(listener, mIsConversation);

            removeView(mOverflowNumber);
            mOverflowNumber = null;
            mGroupOverFlowState = null;
            updateGroupOverflow();
        }
        initDimens();
        for (int i = 0; i < mDividers.size(); i++) {
@@ -1641,10 +1647,6 @@ public class NotificationChildrenContainer extends ViewGroup
            addView(divider, index);
            mDividers.set(i, divider);
        }
        removeView(mOverflowNumber);
        mOverflowNumber = null;
        mGroupOverFlowState = null;
        updateGroupOverflow();
    }

    public void setUserLocked(boolean userLocked) {