diff options
author | Michael Jurka <mikejurka@google.com> | 2012-05-01 12:55:48 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-01 12:55:48 -0700 |
commit | d65b23089c90edcf2808ccccf8f918b6155cc2ec (patch) | |
tree | 049581dd68043a1b848cf6381d5b2c957a2f0f6c | |
parent | 5e024a3c9cf31021106f892fca0f83af3be029aa (diff) | |
parent | dd13e3d0f9925b7bb80c37e21d039aab4fa7e7a1 (diff) | |
download | android_packages_apps_Trebuchet-d65b23089c90edcf2808ccccf8f918b6155cc2ec.tar.gz android_packages_apps_Trebuchet-d65b23089c90edcf2808ccccf8f918b6155cc2ec.tar.bz2 android_packages_apps_Trebuchet-d65b23089c90edcf2808ccccf8f918b6155cc2ec.zip |
Merge "Use public API to get padding" into jb-dev
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 2772d5c66..c2797be35 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -976,8 +976,8 @@ public class CellLayout extends ViewGroup { int numHeightGaps = mCountY - 1; if (mOriginalWidthGap < 0 || mOriginalHeightGap < 0) { - int hSpace = widthSpecSize - mPaddingLeft - mPaddingRight; - int vSpace = heightSpecSize - mPaddingTop - mPaddingBottom; + int hSpace = widthSpecSize - getPaddingLeft() - getPaddingRight(); + int vSpace = heightSpecSize - getPaddingTop() - getPaddingBottom(); int hFreeSpace = hSpace - (mCountX * mCellWidth); int vFreeSpace = vSpace - (mCountY * mCellHeight); mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0); |