OSDN Git Service

Fix build
authorMichael Jurka <mikejurka@google.com>
Wed, 6 Apr 2011 00:07:27 +0000 (17:07 -0700)
committerMichael Jurka <mikejurka@google.com>
Wed, 6 Apr 2011 00:08:38 +0000 (17:08 -0700)
src/com/android/launcher2/PagedViewCellLayout.java

index b94be4d..762ec58 100644 (file)
@@ -248,10 +248,10 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
         // the right edge of the content of the rightmost icon
 
         // icons are centered within cells, find out how much padding that accounts for
-        return getWidthBeforeLayout() - (mCellWidth - Utilities.getIconContentSize());
+        return getWidthBeforeFirstLayout() - (mCellWidth - Utilities.getIconContentSize());
     }
 
-    int getWidthBeforeLayout() {
+    int getWidthBeforeFirstLayout() {
         return mCellCountX * mCellWidth + (mCellCountX - 1) * mWidthGap;
     }