From 5cde7ffc01d6831a12a1c085d9b2b5aef1ed521b Mon Sep 17 00:00:00 2001 From: Luca Zuccarini Date: Fri, 29 Sep 2023 11:31:17 +0000 Subject: [PATCH] [Toast] Fix ANR when tapping on rich card chip. This method recursively looks up the view hierarchy for a suitable view to animate. The wrong variable was causing an infinite loop by never updating the object being checked for the end condition. With the fix, the animation behaves as expected. Fix: 302568434 Flag: ENABLE_SEARCH_RESULT_LAUNCH_ANIMATION Test: see video in the bug. Change-Id: I123e50f1618a1e48256c0c976eeb46c93e8391b2 --- .../src/com/android/launcher3/QuickstepTransitionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index 841fc8f38b..ce644dc0b8 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -1850,7 +1850,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener return null; } - current = (View) view.getParent(); + current = (View) current.getParent(); } return (T) current;