Loading quickstep/src/com/android/launcher3/taskbar/TaskbarPinningController.kt +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class TaskbarPinningController(private val context: TaskbarActivityContext) : animatorSet.doOnEnd { recreateTaskbarAndUpdatePinningValue() } animatorSet.duration = PINNING_ANIMATION_DURATION updateIsAnimatingTaskbarPinningAndNotifyTaskbarDragLayer(true) taskbarViewController.animateAwayNotificationDotsDuringTaskbarPinningAnimation() animatorSet.start() } Loading quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +12 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import androidx.core.graphics.ColorUtils; import androidx.core.view.OneShotPreDrawListener; import com.android.app.animation.Interpolators; import com.android.launcher3.BubbleTextView; import com.android.launcher3.DeviceProfile; import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; Loading Loading @@ -338,6 +339,17 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar } } /** * Animate away taskbar icon notification dots during the taskbar pinning animation. */ public void animateAwayNotificationDotsDuringTaskbarPinningAnimation() { for (View iconView : mTaskbarView.getIconViews()) { if (iconView instanceof BubbleTextView && ((BubbleTextView) iconView).hasDot()) { ((BubbleTextView) iconView).animateDotScale(0); } } } private void updateTaskbarIconTranslationXForPinning() { View[] iconViews = mTaskbarView.getIconViews(); float scale = mTaskbarIconTranslationXForPinning.value; Loading src/com/android/launcher3/BubbleTextView.java +2 −2 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } } private void animateDotScale(float... dotScales) { public void animateDotScale(float... dotScales) { cancelDotScaleAnim(); mDotScaleAnim = ObjectAnimator.ofFloat(this, DOT_SCALE_PROPERTY, dotScales); mDotScaleAnim.addListener(new AnimatorListenerAdapter() { Loading Loading @@ -656,7 +656,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, return mForceHideDot; } private boolean hasDot() { public boolean hasDot() { return mDotInfo != null; } Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarPinningController.kt +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class TaskbarPinningController(private val context: TaskbarActivityContext) : animatorSet.doOnEnd { recreateTaskbarAndUpdatePinningValue() } animatorSet.duration = PINNING_ANIMATION_DURATION updateIsAnimatingTaskbarPinningAndNotifyTaskbarDragLayer(true) taskbarViewController.animateAwayNotificationDotsDuringTaskbarPinningAnimation() animatorSet.start() } Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +12 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import androidx.core.graphics.ColorUtils; import androidx.core.view.OneShotPreDrawListener; import com.android.app.animation.Interpolators; import com.android.launcher3.BubbleTextView; import com.android.launcher3.DeviceProfile; import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; Loading Loading @@ -338,6 +339,17 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar } } /** * Animate away taskbar icon notification dots during the taskbar pinning animation. */ public void animateAwayNotificationDotsDuringTaskbarPinningAnimation() { for (View iconView : mTaskbarView.getIconViews()) { if (iconView instanceof BubbleTextView && ((BubbleTextView) iconView).hasDot()) { ((BubbleTextView) iconView).animateDotScale(0); } } } private void updateTaskbarIconTranslationXForPinning() { View[] iconViews = mTaskbarView.getIconViews(); float scale = mTaskbarIconTranslationXForPinning.value; Loading
src/com/android/launcher3/BubbleTextView.java +2 −2 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } } private void animateDotScale(float... dotScales) { public void animateDotScale(float... dotScales) { cancelDotScaleAnim(); mDotScaleAnim = ObjectAnimator.ofFloat(this, DOT_SCALE_PROPERTY, dotScales); mDotScaleAnim.addListener(new AnimatorListenerAdapter() { Loading Loading @@ -656,7 +656,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, return mForceHideDot; } private boolean hasDot() { public boolean hasDot() { return mDotInfo != null; } Loading