[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 committed 2023-01-27 13:49:40 +00:00
1 parent 91b9de1fe2
commit 2098381808
7 files changed
+162 -7

No files matched your search

@@ -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 */);
}