summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajulu Ponnada <rajulu@codeaurora.org>2012-05-23 01:47:50 (GMT)
committerArne Coucheron <arco68@gmail.com>2012-08-08 01:06:52 (GMT)
commitaf24e2dd527202bb4b7f8042e1b947a79d6668f0 (patch)
tree415c14ea10bc65267d936f040e3889096c523da8
parent39c0d199682a8c6be163fb11db1ed11313e0c4c5 (diff)
downloadandroid_packages_apps_Trebuchet-af24e2dd527202bb4b7f8042e1b947a79d6668f0.zip
android_packages_apps_Trebuchet-af24e2dd527202bb4b7f8042e1b947a79d6668f0.tar.gz
android_packages_apps_Trebuchet-af24e2dd527202bb4b7f8042e1b947a79d6668f0.tar.bz2
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 eb1642c..a31bf40 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);