Immediately hide the icons when QS starts to expand
Bug: 186428835 Test: Manual tests Change-Id: Ibfa079e8319248e39a95a57ec214171480cd7a20
This commit is contained in:
@@ -242,35 +242,26 @@ 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);
|
||||
builder.setListener(new TouchAnimator.ListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationAtEnd() {
|
||||
mIconContainer.addIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.addIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
if (callStrengthIcon != null) {
|
||||
builder.addFloat(callStrengthIcon, "alpha", 1, 0);
|
||||
|
||||
@Override
|
||||
public void onAnimationStarted() {
|
||||
mIconContainer.addIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.addIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
builder.setListener(new TouchAnimator.ListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationAtEnd() {
|
||||
mIconContainer.addIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.addIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationStarted() {
|
||||
mIconContainer.removeIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.removeIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationAtStart() {
|
||||
super.onAnimationAtStart();
|
||||
mIconContainer.removeIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.removeIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
});
|
||||
}
|
||||
@Override
|
||||
public void onAnimationAtStart() {
|
||||
super.onAnimationAtStart();
|
||||
mIconContainer.removeIgnoredSlot(mMobileSlotName);
|
||||
mIconContainer.removeIgnoredSlot(mCallStrengthSlotName);
|
||||
}
|
||||
});
|
||||
mAlphaAnimator = builder.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user