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

Commit d5e04e0e authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

If the media player disappears, request a relayout

This happens because the total size of QS doesn't change, but
NPV needs to be notified that it needs to relayout notifications based
on a new height of QQS.

Test: manual
Fixes: 385810029
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Change-Id: I5ac37b41d7ec949fd24c79ddab59d0a1db47b036
parent fd9d81ca
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2158,6 +2158,8 @@ public class QuickSettingsControllerImpl implements QuickSettingsController, Dum

    /** */
    public final class QsFragmentListener implements FragmentHostManager.FragmentListener {
        private boolean mPreviouslyVisibleMedia = false;

        /** */
        @Override
        public void onFragmentViewCreated(String tag, Fragment fragment) {
@@ -2183,7 +2185,12 @@ public class QuickSettingsControllerImpl implements QuickSettingsController, Dum
                    setAnimateNextNotificationBounds(
                            StackStateAnimator.ANIMATION_DURATION_STANDARD, 0);
                    mNotificationStackScrollLayoutController.animateNextTopPaddingChange();
                    if (QSComposeFragment.isEnabled() && mPreviouslyVisibleMedia && !visible) {
                        updateHeightsOnShadeLayoutChange();
                        mPanelViewControllerLazy.get().positionClockAndNotifications();
                    }
                }
                mPreviouslyVisibleMedia = visible;
            });
            mLockscreenShadeTransitionController.setQS(mQs);
            if (QSComposeFragment.isEnabled()) {