mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Animate aways Notification Dots for Taskbar Pinning Annimation" into main
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user