diff options
author | Adam Cohen <adamcohen@google.com> | 2010-10-05 12:27:22 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2010-10-05 14:08:00 -0700 |
commit | 9c4949e12c909d5e01d24386147b1c528015b31b (patch) | |
tree | 2ab81228507c4c1fcbfcac98fc8369ccaaa836bf /src/com/android/launcher2/CustomizePagedView.java | |
parent | 67f7f43f54613aeeccc37d5920014515eb765d59 (diff) | |
download | android_packages_apps_Trebuchet-9c4949e12c909d5e01d24386147b1c528015b31b.tar.gz android_packages_apps_Trebuchet-9c4949e12c909d5e01d24386147b1c528015b31b.tar.bz2 android_packages_apps_Trebuchet-9c4949e12c909d5e01d24386147b1c528015b31b.zip |
->Added attribute to PagedView to specify spacing between
adjacent pages
->Fixing crash on phones
Change-Id: I8ea97ce6d569c59b6d51b544dc10b0310d294b43
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index 62e549624..b7e5dcd2d 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -115,12 +115,6 @@ public class CustomizePagedView extends PagedView private List<ResolveInfo> mWallpaperList; private List<ApplicationInfo> mApps; - private int mCellCountX; - private int mCellCountY; - private int mPageLayoutPaddingTop; - private int mPageLayoutPaddingBottom; - private int mPageLayoutPaddingLeft; - private int mPageLayoutPaddingRight; private static final int sMinWidgetCellHSpan = 2; private static final int sMaxWidgetCellHSpan = 4; @@ -151,14 +145,7 @@ public class CustomizePagedView extends PagedView a = context.obtainStyledAttributes(attrs, R.styleable.PagedView, defStyle, 0); mCellCountX = a.getInt(R.styleable.PagedView_cellCountX, 7); mCellCountY = a.getInt(R.styleable.PagedView_cellCountY, 4); - mPageLayoutPaddingTop = a.getDimensionPixelSize( - R.styleable.PagedView_pageLayoutPaddingTop, 10); - mPageLayoutPaddingBottom = a.getDimensionPixelSize( - R.styleable.PagedView_pageLayoutPaddingBottom, 10); - mPageLayoutPaddingLeft = a.getDimensionPixelSize( - R.styleable.PagedView_pageLayoutPaddingLeft, 10); - mPageLayoutPaddingRight = a.getDimensionPixelSize( - R.styleable.PagedView_pageLayoutPaddingRight, 10); + a.recycle(); mCustomizationType = CustomizationType.WidgetCustomization; mWidgetPages = new ArrayList<ArrayList<AppWidgetProviderInfo>>(); |