Using DiffUtil for calculating widget diff instead

of a custom implementation

This uses the same version as all-apps and avoids whole list refresh
when a widget entry is expanded for the first time

Removing tests which were essentially testing the diffing logic

Bug: 268646258
Test: Verified on device
Change-Id: I4799c66b4674e754547317317e7a63f098fce735
This commit is contained in:
Sunny Goyal committed 2023-02-14 20:59:29 +00:00
1 parent a9e67196e6
commit 892fab2c14
11 files changed
+74 -844

No files matched your search

@@ -61,12 +61,6 @@ public final class WidgetsListContentEntry extends WidgetsListBaseEntry {
+ mMaxSpanSizeInCells;
}
@Override
@Rank
public int getRank() {
return RANK_WIDGETS_LIST_CONTENT;
}
/**
* Returns a copy of this {@link WidgetsListContentEntry} with updated
* {@param maxSpanSizeInCells}.