summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajulu Ponnada <rajulu@codeaurora.org>2012-05-22 18:47:50 -0700
committerArne Coucheron <arco68@gmail.com>2012-08-08 03:06:52 +0200
commitaf24e2dd527202bb4b7f8042e1b947a79d6668f0 (patch)
tree415c14ea10bc65267d936f040e3889096c523da8
parent39c0d199682a8c6be163fb11db1ed11313e0c4c5 (diff)
downloadandroid_packages_apps_Trebuchet-cm-9.1.0.tar.gz
android_packages_apps_Trebuchet-cm-9.1.0.tar.bz2
android_packages_apps_Trebuchet-cm-9.1.0.zip
Launcher: increasing the lower bound and upperbound of loaded pages to avoid stutter in applist scrollics-releasecm-9.1.0
Change-Id: I8fed59569129cc1c062ffdb287183531c1f84dbf (cherry picked from commit 02a74f1f847289bcb24236988283e51e876af1e7)
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index eb1642c2f..a31bf40d5 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -1997,8 +1997,8 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
* We load an extra page on each side to prevent flashes from scrolling and loading of the
* widget previews in the background with the AsyncTasks.
*/
- final static int sLookBehindPageCount = 2;
- final static int sLookAheadPageCount = 2;
+ final static int sLookBehindPageCount = 3;
+ final static int sLookAheadPageCount = 3;
protected int getAssociatedLowerPageBound(int page) {
final int count = getChildCount();
int windowSize = Math.min(count, sLookBehindPageCount + sLookAheadPageCount + 1);