Loading src/com/android/launcher3/model/BaseLoaderResults.java +4 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import com.android.launcher3.util.RunnableList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.concurrent.Executor; /** Loading Loading @@ -203,7 +204,9 @@ public abstract class BaseLoaderResults { } private void bind() { IntSet currentScreenIds = mCallbacks.getPagesToBindSynchronously(mOrderedScreenIds); final IntSet currentScreenIds = mCallbacks.getPagesToBindSynchronously(mOrderedScreenIds); Objects.requireNonNull(currentScreenIds, "Null screen ids provided by " + mCallbacks); // Separate the items that are on the current screen, and all the other remaining items ArrayList<ItemInfo> currentWorkspaceItems = new ArrayList<>(); Loading src/com/android/launcher3/model/BgDataModel.java +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.text.TextUtils; import android.util.ArraySet; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.android.launcher3.LauncherSettings; Loading Loading @@ -469,6 +470,7 @@ public class BgDataModel { * or an empty IntSet * @param orderedScreenIds All the page ids to be bound */ @NonNull default IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) { return new IntSet(); } Loading src/com/android/launcher3/model/ModelUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ public class ModelUtils { * specified screen. */ public static <T extends ItemInfo> void filterCurrentWorkspaceItems( IntSet currentScreenIds, final IntSet currentScreenIds, ArrayList<T> allWorkspaceItems, ArrayList<T> currentScreenItems, ArrayList<T> otherScreenItems) { Loading Loading
src/com/android/launcher3/model/BaseLoaderResults.java +4 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import com.android.launcher3.util.RunnableList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.concurrent.Executor; /** Loading Loading @@ -203,7 +204,9 @@ public abstract class BaseLoaderResults { } private void bind() { IntSet currentScreenIds = mCallbacks.getPagesToBindSynchronously(mOrderedScreenIds); final IntSet currentScreenIds = mCallbacks.getPagesToBindSynchronously(mOrderedScreenIds); Objects.requireNonNull(currentScreenIds, "Null screen ids provided by " + mCallbacks); // Separate the items that are on the current screen, and all the other remaining items ArrayList<ItemInfo> currentWorkspaceItems = new ArrayList<>(); Loading
src/com/android/launcher3/model/BgDataModel.java +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.text.TextUtils; import android.util.ArraySet; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.android.launcher3.LauncherSettings; Loading Loading @@ -469,6 +470,7 @@ public class BgDataModel { * or an empty IntSet * @param orderedScreenIds All the page ids to be bound */ @NonNull default IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) { return new IntSet(); } Loading
src/com/android/launcher3/model/ModelUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ public class ModelUtils { * specified screen. */ public static <T extends ItemInfo> void filterCurrentWorkspaceItems( IntSet currentScreenIds, final IntSet currentScreenIds, ArrayList<T> allWorkspaceItems, ArrayList<T> currentScreenItems, ArrayList<T> otherScreenItems) { Loading