Implementing support for item diffing instead of creating out the

complete UI on every update

Bug: 229860311
Test: Verified locally
Change-Id: I5712b5d76878a0ed72cc1392ede59b3778b7a1dc
This commit is contained in:
Sunny Goyal
2022-05-01 12:18:14 -07:00
parent e73c3075c1
commit 3c5a08ada1
11 changed files with 149 additions and 170 deletions
@@ -37,10 +37,10 @@ public class AllAppsFastScrollHelper {
* Smooth scrolls the recycler view to the given section.
*/
public void smoothScrollToSection(FastScrollSectionInfo info) {
if (mTargetFastScrollPosition == info.fastScrollToItem.position) {
if (mTargetFastScrollPosition == info.position) {
return;
}
mTargetFastScrollPosition = info.fastScrollToItem.position;
mTargetFastScrollPosition = info.position;
mRv.getLayoutManager().startSmoothScroll(new MyScroller(mTargetFastScrollPosition));
}