commit | 87b2a6c85b7fbb528db20b884b41a56ad394bfc3 | [log] [tgz] |
---|---|---|
author | Fabián Kozynski <kozynski@google.com> | Tue Oct 03 12:16:26 2023 -0400 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Oct 17 02:42:03 2023 +0000 |
tree | 9068efd2fca7ab95761a6e353341dd84e91aeb75 | |
parent | fa42dfc53a5bda461e2260a0c6e3bb5cdda03bba [diff] |
Re-write conditional checks for animation When they were extracted into a separate method and split by type of check, we lost some behavior that was guaranteed to be prevented by the short-circuiting. This CL makes sure that the checks do not depend on short circuiting by removing side effect methods from the checks. If the checks pass (we can animate) we do one last check that will try to enable fakeDrag. Test: manual Fixes: 297488363 (cherry picked from commit 9bc94e9c25cb27432071951dced62aeb8cd761a9) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:77bb4deb7487bf0737b3465b2cdb5a3553c0d10a) Merged-In: Iebda8c9acfbf75a49522887687702b2e8c0158de Change-Id: Iebda8c9acfbf75a49522887687702b2e8c0158de