diff options
author | Rajulu Ponnada <rajulu@codeaurora.org> | 2012-05-22 18:47:50 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-09-25 12:36:59 -0700 |
commit | 9d86b9717b67b365e6e2e586c6703540d22c5e68 (patch) | |
tree | 39aba8516a6c787deaafcc9c8eaedb61af19cae4 /src | |
parent | a874dfa1879159524581256da8a4687d64a9ee6e (diff) | |
download | android_packages_apps_Trebuchet-9d86b9717b67b365e6e2e586c6703540d22c5e68.tar.gz android_packages_apps_Trebuchet-9d86b9717b67b365e6e2e586c6703540d22c5e68.tar.bz2 android_packages_apps_Trebuchet-9d86b9717b67b365e6e2e586c6703540d22c5e68.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')
-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 ad87822dd..364b3b30e 100644 --- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java +++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java @@ -2072,8 +2072,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); |