diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2023-02-10 14:13:51 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2023-02-14 20:59:29 +0000 |
commit | 892fab2c140df73bfef93cceb5d229f0424eecf0 (patch) | |
tree | d12d4304d9cda6e8ea3be5738e0463e5d3be43c5 /src_shortcuts_overrides | |
parent | a9e67196e66fa1609a6434f7ab6aa0bca7605587 (diff) | |
download | Launcher3-892fab2c140df73bfef93cceb5d229f0424eecf0.tar.gz |
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
Diffstat (limited to 'src_shortcuts_overrides')
-rw-r--r-- | src_shortcuts_overrides/com/android/launcher3/model/WidgetsModel.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src_shortcuts_overrides/com/android/launcher3/model/WidgetsModel.java b/src_shortcuts_overrides/com/android/launcher3/model/WidgetsModel.java index f4903338d1..1b743e8bdc 100644 --- a/src_shortcuts_overrides/com/android/launcher3/model/WidgetsModel.java +++ b/src_shortcuts_overrides/com/android/launcher3/model/WidgetsModel.java @@ -40,7 +40,6 @@ import com.android.launcher3.widget.WidgetSections; import com.android.launcher3.widget.model.WidgetsListBaseEntry; import com.android.launcher3.widget.model.WidgetsListContentEntry; import com.android.launcher3.widget.model.WidgetsListHeaderEntry; -import com.android.launcher3.widget.picker.WidgetsDiffReporter; import java.util.ArrayList; import java.util.Arrays; @@ -73,8 +72,7 @@ public class WidgetsModel { /** * Returns a list of {@link WidgetsListBaseEntry}. All {@link WidgetItem} in a single row * are sorted (based on label and user), but the overall list of - * {@link WidgetsListBaseEntry}s is not sorted. This list is sorted at the UI when using - * {@link WidgetsDiffReporter} + * {@link WidgetsListBaseEntry}s is not sorted. * * @see com.android.launcher3.widget.picker.WidgetsListAdapter#setWidgets(List) */ |