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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user