Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Predictive Back][Search] Fixed
UnsupportedOperationException
`Anim…
…atorSet` crash in `SearchView`. When navigation icon animation is disabled after the predictive back navigation icon animators are initialized, a strange crash happens in `SearchViewAnimatorSet#updateBackProgress` from the call to `AnimatorSet#setCurrentPlayTime()`, in which the button progress `AnimatorSet` duration is 250 but the total duration is 0. This triggers an [`UnsupportedOperationException`](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/animation/AnimatorSet.java#928) with the message: `"Error: Play time should always be in between 0 and duration."`. Adding an early return from `SearchViewAnimatorSet#updateBackProgress` when navigation animation is disabled appears to fix the crash. PiperOrigin-RevId: 550885523
- Loading branch information