Move batch size to a resource.

This way we can figure out how many apps to send to the grid
at a time even if the grid hasn't been instantiated yet.

Bug: 2599979
Change-Id: I7960fe1adae6976555334422335f3a4b28d0675e
This commit is contained in:
Daniel Sandler
2010-04-19 14:47:18 -04:00
parent 9ecd07d636
commit cbe7f20ad7
5 changed files with 3 additions and 16 deletions

View File

@@ -50,8 +50,6 @@ public class AllApps2D
private static final String TAG = "Launcher.AllApps2D";
private static final int BATCH_SIZE = 6; // give us a few apps at a time
private Launcher mLauncher;
private DragController mDragController;
@@ -302,10 +300,6 @@ public class AllApps2D
return -1;
}
public int getAppBatchSize() {
return BATCH_SIZE;
}
public void dumpState() {
ApplicationInfo.dumpApplicationInfoList(TAG, "mAllAppsList", mAllAppsList);
}