Adding open/close animartion when launching app-info target

Bug: 356914468
Test: Verified manually
Flag: EXEMPT bugfix
Change-Id: I3a4e48363728153a96c75466824fb03de44c0ad9
This commit is contained in:
Sunny Goyal committed 2024-09-10 13:35:46 -07:00
1 parent 97db09dbd8
commit cb98fb26b8
7 files changed
+25 -26

No files matched your search

@@ -253,11 +253,14 @@ public class FloatingIconView extends FrameLayout implements
public static void getLocationBoundsForView(Launcher launcher, View v, boolean isOpening,
RectF outRect, Rect outViewBounds) {
boolean ignoreTransform = !isOpening;
if (v instanceof BubbleTextHolder) {
v = ((BubbleTextHolder) v).getBubbleText();
if (v instanceof DeepShortcutView dsv) {
v = dsv.getIconView();
ignoreTransform = false;
} else if (v.getParent() instanceof DeepShortcutView) {
v = ((DeepShortcutView) v.getParent()).getIconView();
} else if (v.getParent() instanceof DeepShortcutView dsv) {
v = dsv.getIconView();
ignoreTransform = false;
} else if (v instanceof BubbleTextHolder bth) {
v = bth.getBubbleText();
ignoreTransform = false;
}
if (v == null) {
@@ -298,10 +301,10 @@ public class FloatingIconView extends FrameLayout implements
Drawable badge = null;
if (info instanceof SystemShortcut) {
if (originalView instanceof ImageView) {
drawable = ((ImageView) originalView).getDrawable();
} else if (originalView instanceof DeepShortcutView) {
drawable = ((DeepShortcutView) originalView).getIconView().getBackground();
if (originalView instanceof ImageView iv) {
drawable = iv.getDrawable();
} else if (originalView instanceof DeepShortcutView dsv) {
drawable = dsv.getIconView().getBackground();
} else {
drawable = originalView.getBackground();
}