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

Commit b4d876a5 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Hide QS customizer correctly" am: 03e4eb32 am: fb569582

am: 9dce7cdf

Change-Id: I884b10c5a187bfd4299b9ff5b6ed1aa6917c3e71
parents c4ee093b 9dce7cdf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public class QSPanel extends LinearLayout implements Tunable, Callback {
    }

    public void onCollapse() {
        if (mCustomizePanel != null && mCustomizePanel.isCustomizing()) {
        if (mCustomizePanel != null && mCustomizePanel.isShown()) {
            mCustomizePanel.hide(mCustomizePanel.getWidth() / 2, mCustomizePanel.getHeight() / 2);
        }
    }
@@ -404,7 +404,7 @@ public class QSPanel extends LinearLayout implements Tunable, Callback {
    }

    public void closeDetail() {
        if (mCustomizePanel != null && mCustomizePanel.isCustomizing()) {
        if (mCustomizePanel != null && mCustomizePanel.isShown()) {
            // Treat this as a detail panel for now, to make things easy.
            mCustomizePanel.hide(mCustomizePanel.getWidth() / 2, mCustomizePanel.getHeight() / 2);
            return;
+7 −1
Original line number Diff line number Diff line
@@ -163,6 +163,10 @@ public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene
        }
    }

    public boolean isShown() {
        return isShown;
    }

    private void setCustomizing(boolean customizing) {
        mCustomizing = customizing;
        mQsContainer.notifyCustomizeChanged();
@@ -217,7 +221,9 @@ public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene
    private final AnimatorListener mExpandAnimationListener = new AnimatorListenerAdapter() {
        @Override
        public void onAnimationEnd(Animator animation) {
            if (isShown) {
                setCustomizing(true);
            }
            mNotifQsContainer.setCustomizerAnimating(false);
        }