summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedView.java
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2011-05-19 16:48:48 -0700
committerPatrick Dubroy <dubroy@google.com>2011-05-20 14:03:14 -0700
commit244d74cb353f1260c4d633e719bf84bb3b6e52bc (patch)
treeb509b59b9fdef5b0f52fba899a4bd57c5c23099b /src/com/android/launcher2/PagedView.java
parentdc4682a47446b38c912a30fe43b6a5c5cb53a367 (diff)
downloadandroid_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.tar.gz
android_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.tar.bz2
android_packages_apps_Trebuchet-244d74cb353f1260c4d633e719bf84bb3b6e52bc.zip
Dynamically determine # of rows/cols in All Apps.
Change-Id: Ia8c1b3915325823f7617862e0e4e0db865ea0d5d
Diffstat (limited to 'src/com/android/launcher2/PagedView.java')
-rw-r--r--src/com/android/launcher2/PagedView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher2/PagedView.java
index 1180106c9..bd41e02ef 100644
--- a/src/com/android/launcher2/PagedView.java
+++ b/src/com/android/launcher2/PagedView.java
@@ -113,8 +113,8 @@ public abstract class PagedView extends ViewGroup {
protected int mPageLayoutWidthGap;
protected int mPageLayoutHeightGap;
protected int mPageLayoutMaxHeight;
- protected int mCellCountX;
- protected int mCellCountY;
+ protected int mCellCountX = -1;
+ protected int mCellCountY = -1;
protected boolean mCenterPagesVertically;
protected boolean mAllowOverScroll = true;
protected int mUnboundedScrollX;
@@ -1549,7 +1549,7 @@ public abstract class PagedView extends ViewGroup {
*/
public abstract void syncPageItems(int page);
- public void invalidatePageData() {
+ protected void invalidatePageData() {
if (mContentIsRefreshable) {
// Update all the pages
syncPages();