commit | daf3a23cb806006e271b96725a020c62606fb71d | [log] [tgz] |
---|---|---|
author | George Lin <giolin@google.com> | Mon Apr 24 18:59:10 2023 +0000 |
committer | George Lin <giolin@google.com> | Tue Apr 25 03:13:13 2023 +0000 |
tree | 772e6b2952a053c7dd9ceaea1187560440ababec | |
parent | 304143aa8efdc54b5f2e621028aea9ea3de3103b [diff] |
Improve clock carousel perf 1. Only call clockViewFactory.getRatio() when set up the carousel, instead of whenever scrolling the carousel or populating the views 2. Remove unnessary onClockTransitionCompleted call 3. Do not call jumpToIndex if the current index is the same to avoid populating the views again Test: Manually tested that the carousel works as expected. Bug: 278850684 Change-Id: I9dc22f6df9052677db7330e7b5dd44b27722118f