diff options
author | Rajulu Ponnada <rajulu@codeaurora.org> | 2012-05-22 18:47:50 -0700 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-11-19 01:26:17 +0000 |
commit | b7bea4ff59d47aa3fd6cb143541c60fc264145aa (patch) | |
tree | 18be916ba9337c3eaa7a69d749b77cf5d3537400 /src/com | |
parent | 10c87c304d54becd1640551305f560f29d420217 (diff) | |
download | packages_apps_trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.zip packages_apps_trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.tar.gz packages_apps_trebuchet-b7bea4ff59d47aa3fd6cb143541c60fc264145aa.tar.bz2 |
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')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java index 82341bb..490e05e 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); |