mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Remove assumptions from swap prediction logic.
Bug: 64689250 Change-Id: If54ac03dec7d8c09f951b3ffeb7732202e3f1562
This commit is contained in:
committed by
Jonathan Miranda
parent
8c220d1311
commit
fc2bf24022
@@ -362,9 +362,12 @@ public class AlphabeticalAppsList {
|
||||
int size = apps.size();
|
||||
for (int i = 0; i < size; ++i) {
|
||||
AppInfo info = apps.get(i);
|
||||
AdapterItem appItem = AdapterItem.asPredictedApp(i, "", info, i);
|
||||
appItem.rowAppIndex = i;
|
||||
mAdapterItems.set(i, appItem);
|
||||
AdapterItem orgItem = mAdapterItems.get(i);
|
||||
AdapterItem newItem = AdapterItem.asPredictedApp(orgItem.position, "", info,
|
||||
orgItem.appIndex);
|
||||
newItem.rowAppIndex = orgItem.rowAppIndex;
|
||||
|
||||
mAdapterItems.set(i, newItem);
|
||||
mFilteredApps.set(i, info);
|
||||
mAdapter.notifyItemChanged(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user