[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
This commit is contained in:
Luca Zuccarini
2023-09-29 11:31:17 +00:00
parent f2412770e2
commit ba44979d79

View File

@@ -1829,7 +1829,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
return null;
}
current = (View) view.getParent();
current = (View) current.getParent();
}
return (T) current;