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

Commit 5a1548f9 authored by Ying Xu's avatar Ying Xu Committed by Automerger Merge Worker
Browse files

Merge "Immediately hide the icons when QS starts to expand" into sc-dev am: edec7fd6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14387673

Change-Id: Ic1828e0199ba56d7ed23b8310b30189aef3bb234
parents 1e2a9584 edec7fd6
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();
    }