diff --git a/res/values/config.xml b/res/values/config.xml index 2822e95de0..15ec05b426 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -1,5 +1,6 @@ 700 700 - 150 + 0 + 0 diff --git a/src/com/android/launcher2/AllApps2D.java b/src/com/android/launcher2/AllApps2D.java index eb7cd83331..90c87fb18b 100644 --- a/src/com/android/launcher2/AllApps2D.java +++ b/src/com/android/launcher2/AllApps2D.java @@ -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); } diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java index be3b114727..9c3b3e4c72 100644 --- a/src/com/android/launcher2/AllApps3D.java +++ b/src/com/android/launcher2/AllApps3D.java @@ -73,8 +73,6 @@ public class AllApps3D extends RSSurfaceView private static final int SELECTION_ICONS = 1; private static final int SELECTION_HOME = 2; - private static final int BATCH_SIZE = 0; // give us all the apps at once - private Launcher mLauncher; private DragController mDragController; @@ -1600,10 +1598,6 @@ public class AllApps3D extends RSSurfaceView } } - public int getAppBatchSize() { - return BATCH_SIZE; - } - public void dumpState() { Log.d(TAG, "sRS=" + sRS); Log.d(TAG, "sRollo=" + sRollo); diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 8888737d2c..877c07577c 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -41,8 +41,6 @@ public interface AllAppsView { public void updateApps(ArrayList list); - public int getAppBatchSize(); - public void dumpState(); public void surrender(); diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 5cfcac2870..352219902e 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2095,7 +2095,7 @@ public final class Launcher extends Activity * Implementation of the method from LauncherModel.Callbacks. */ public int getAppBatchSize() { - return mAllAppsGrid.getAppBatchSize(); + return getResources().getInteger(R.integer.config_allAppsBatchSize); } /**