commit | 1d76159de4dc626bc35fb4dc1a969d07508b6dc9 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Fri Oct 28 12:25:04 2022 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri Oct 28 12:25:04 2022 -0700 |
tree | 5a746f4fd6175b3b2038daf4e1bdff417fef3be6 | |
parent | 391280818393ed503417357ea7d0959f288e9f5f [diff] |
Fixing flakyness in widget tests For some predicted app widgets, the layout happens before the recyclerView can layout completely (because of preview layout invalidation), causing the scroll cache to get in a wrong state. Checking for scroll cache validity everytime instead of only during data changes Bug: 255797215 Test: Verified by hardcoing the chrome widget as predicted widget Change-Id: Id2c68560baa45de89e08c53bdb9ee6820eab68c4