Revert "Updating the scroll calculation from recyclerView to avoid view inflation"

This reverts commit 20bbe95ddb.

Reason for revert: Causing flake in Ironwood test: b/248295569

Test: ABTD
Before: Flaky, 14/50 PASSED
https://android-build.googleplex.com/builds/abtd/run/L33900000956890639

Revert: 50/50 PASSED
https://android-build.googleplex.com/builds/abtd/run/L49200000956887317

Change-Id: I41f4428c74e581323f90c716a7852b5e553ae27d
This commit is contained in:
Hui Kang
2022-10-17 18:27:18 +00:00
parent 20bbe95ddb
commit cee6ddf3de
12 changed files with 211 additions and 212 deletions
@@ -103,8 +103,7 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
updateHeaderScroll(
((AllAppsRecyclerView) recyclerView).computeVerticalScrollOffset());
updateHeaderScroll(((AllAppsRecyclerView) recyclerView).getCurrentScrollY());
}
};