[Toast] Introduce SysUI's animation library to the transition manager.

Bug: 250588519
Test: manual, see videos in bug
Change-Id: Iccc440c95ecc14d39e35d911798e239b698b950a
This commit is contained in:
Luca Zuccarini
2023-01-03 14:19:48 +00:00
parent 91b9de1fe2
commit 2098381808
7 changed files with 162 additions and 7 deletions

View File

@@ -343,7 +343,8 @@ public class ItemClickHandler {
return;
}
}
if (v != null && launcher.supportsAdaptiveIconAnimation(v)) {
if (v != null && launcher.supportsAdaptiveIconAnimation(v)
&& !item.shouldUseBackgroundAnimation()) {
// Preload the icon to reduce latency b/w swapping the floating view with the original.
FloatingIconView.fetchIcon(launcher, v, item, true /* isOpening */);
}