Merge "Make settings/text alpha animation happen in parallelSet instead of when headerSetter starts." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
b6528c92ba
@@ -662,10 +662,7 @@ public class PrivateProfileManager extends UserProfileManager {
|
||||
return;
|
||||
}
|
||||
attachFloatingMaskView(expand);
|
||||
PropertySetter headerSetter = new AnimatedPropertySetter();
|
||||
headerSetter.add(updateSettingsGearAlpha(expand));
|
||||
headerSetter.add(updateLockTextAlpha(expand));
|
||||
AnimatorSet animatorSet = headerSetter.buildAnim();
|
||||
AnimatorSet animatorSet = new AnimatedPropertySetter().buildAnim();
|
||||
animatorSet.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
@@ -710,12 +707,16 @@ public class PrivateProfileManager extends UserProfileManager {
|
||||
}
|
||||
}));
|
||||
if (expand) {
|
||||
animatorSet.playTogether(animateAlphaOfIcons(true),
|
||||
animatorSet.playTogether(updateSettingsGearAlpha(true),
|
||||
updateLockTextAlpha(true),
|
||||
animateAlphaOfIcons(true),
|
||||
animatePillTransition(true),
|
||||
translateFloatingMaskView(false));
|
||||
} else {
|
||||
AnimatorSet parallelSet = new AnimatorSet();
|
||||
parallelSet.playTogether(animateAlphaOfIcons(false),
|
||||
parallelSet.playTogether(updateSettingsGearAlpha(false),
|
||||
updateLockTextAlpha(false),
|
||||
animateAlphaOfIcons(false),
|
||||
animatePillTransition(false));
|
||||
if (isPrivateSpaceHidden()) {
|
||||
animatorSet.playSequentially(parallelSet,
|
||||
|
||||
Reference in New Issue
Block a user