summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authorRajulu Ponnada <rajulu@codeaurora.org>2012-05-22 18:47:50 -0700
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 01:26:17 +0000
commitb7bea4ff59d47aa3fd6cb143541c60fc264145aa (patch)
tree18be916ba9337c3eaa7a69d749b77cf5d3537400 /src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
parent10c87c304d54becd1640551305f560f29d420217 (diff)
downloadandroid_packages_apps_Trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.tar.gz
android_packages_apps_Trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.tar.bz2
android_packages_apps_Trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.zip
Launcher: increasing the lower bound and upperbound of loaded pages to avoid stutter in applist scroll
Change-Id: I8fed59569129cc1c062ffdb287183531c1f84dbf (cherry picked from commit 4cc5af01944981714dea73de6556f2db0456b621)
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java')
-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 82341bb30..490e05ec7 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -2086,8 +2086,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);