Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconAreaController.java +14 −5 Original line number Diff line number Diff line Loading @@ -537,11 +537,7 @@ public class NotificationIconAreaController implements DarkReceiver, if (dozeParameters.shouldControlScreenOff()) { mAodIcons.setTranslationY(-mAodIconAppearTranslation); mAodIcons.setAlpha(0); mAodIcons.animate() .setInterpolator(Interpolators.DECELERATE_QUINT) .translationY(0) .setDuration(AOD_ICONS_APPEAR_DURATION) .start(); animateInAodIconTranslation(); mAodIcons.animate() .alpha(1) .setInterpolator(Interpolators.LINEAR) Loading @@ -550,6 +546,14 @@ public class NotificationIconAreaController implements DarkReceiver, } } private void animateInAodIconTranslation() { mAodIcons.animate() .setInterpolator(Interpolators.DECELERATE_QUINT) .translationY(0) .setDuration(AOD_ICONS_APPEAR_DURATION) .start(); } private void reloadAodColor() { mAodIconTint = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); Loading Loading @@ -606,14 +610,19 @@ public class NotificationIconAreaController implements DarkReceiver, mAodIcons.setAlpha(1.0f); appearAodIcons(); } else { // Let's make sure the icon are translated to 0, since we cancelled it above animateInAodIconTranslation(); // We were fading out, let's fade in instead CrossFadeHelper.fadeIn(mAodIcons); } } else { // Let's make sure the icon are translated to 0, since we cancelled it above animateInAodIconTranslation(); CrossFadeHelper.fadeOut(mAodIcons); } } else { mAodIcons.setAlpha(1.0f); mAodIcons.setTranslationY(0); mAodIcons.setVisibility(visible ? View.VISIBLE : View.INVISIBLE); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconAreaController.java +14 −5 Original line number Diff line number Diff line Loading @@ -537,11 +537,7 @@ public class NotificationIconAreaController implements DarkReceiver, if (dozeParameters.shouldControlScreenOff()) { mAodIcons.setTranslationY(-mAodIconAppearTranslation); mAodIcons.setAlpha(0); mAodIcons.animate() .setInterpolator(Interpolators.DECELERATE_QUINT) .translationY(0) .setDuration(AOD_ICONS_APPEAR_DURATION) .start(); animateInAodIconTranslation(); mAodIcons.animate() .alpha(1) .setInterpolator(Interpolators.LINEAR) Loading @@ -550,6 +546,14 @@ public class NotificationIconAreaController implements DarkReceiver, } } private void animateInAodIconTranslation() { mAodIcons.animate() .setInterpolator(Interpolators.DECELERATE_QUINT) .translationY(0) .setDuration(AOD_ICONS_APPEAR_DURATION) .start(); } private void reloadAodColor() { mAodIconTint = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); Loading Loading @@ -606,14 +610,19 @@ public class NotificationIconAreaController implements DarkReceiver, mAodIcons.setAlpha(1.0f); appearAodIcons(); } else { // Let's make sure the icon are translated to 0, since we cancelled it above animateInAodIconTranslation(); // We were fading out, let's fade in instead CrossFadeHelper.fadeIn(mAodIcons); } } else { // Let's make sure the icon are translated to 0, since we cancelled it above animateInAodIconTranslation(); CrossFadeHelper.fadeOut(mAodIcons); } } else { mAodIcons.setAlpha(1.0f); mAodIcons.setTranslationY(0); mAodIcons.setVisibility(visible ? View.VISIBLE : View.INVISIBLE); } } Loading