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

Commit 679c4f7f authored by yinxu's avatar yinxu
Browse files

Immediately hide the icons when QS starts to expand

Bug: 186428835
Test: Manual tests
Change-Id: Ibfa079e8319248e39a95a57ec214171480cd7a20
parent fc143aa7
Loading
Loading
Loading
Loading
+17 −26
Original line number Diff line number Diff line
@@ -242,14 +242,6 @@ public class QuickStatusBarHeader extends FrameLayout {
                .addFloat(mDateView, "alpha", 0, 1)
                .addFloat(mSecurityHeaderView, "alpha", 0, 1)
                .addFloat(mQSCarriers, "alpha", 0, 1);

        if (noCallingIcon != null || callStrengthIcon != null) {
            if (noCallingIcon != null) {
                builder.addFloat(noCallingIcon, "alpha", 1, 0);
            }
            if (callStrengthIcon != null) {
                builder.addFloat(callStrengthIcon, "alpha", 1, 0);
            }
        builder.setListener(new TouchAnimator.ListenerAdapter() {
            @Override
            public void onAnimationAtEnd() {
@@ -259,8 +251,8 @@ public class QuickStatusBarHeader extends FrameLayout {

            @Override
            public void onAnimationStarted() {
                    mIconContainer.removeIgnoredSlot(mMobileSlotName);
                    mIconContainer.removeIgnoredSlot(mCallStrengthSlotName);
                mIconContainer.addIgnoredSlot(mMobileSlotName);
                mIconContainer.addIgnoredSlot(mCallStrengthSlotName);
            }

            @Override
@@ -270,7 +262,6 @@ public class QuickStatusBarHeader extends FrameLayout {
                mIconContainer.removeIgnoredSlot(mCallStrengthSlotName);
            }
        });
        }
        mAlphaAnimator = builder.build();
    }