From ba44979d7927e0e25206346a69d6a3dfde44a437 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 Merged-In: 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 3113cc2c01..741249d53e 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -1829,7 +1829,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener return null; } - current = (View) view.getParent(); + current = (View) current.getParent(); } return (T) current;