mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Converting long item IDs to int
> Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
This commit is contained in:
@@ -29,6 +29,7 @@ import android.util.SparseBooleanArray;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.icons.BaseIconCache.IconDB;
|
||||
import com.android.launcher3.util.IntArray;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
@@ -205,7 +206,7 @@ public class IconCacheUpdateHandler {
|
||||
|
||||
public void finish() {
|
||||
// Commit all deletes
|
||||
ArrayList<Integer> deleteIds = new ArrayList<>();
|
||||
IntArray deleteIds = new IntArray();
|
||||
int count = mItemsToDelete.size();
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (mItemsToDelete.valueAt(i)) {
|
||||
|
||||
Reference in New Issue
Block a user