diff options
author | Michael Jurka <mikejurka@google.com> | 2013-10-16 13:50:24 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-06-05 23:03:34 -0700 |
commit | 8694d9a7c57b7ba45ff0922670a39d59ad643025 (patch) | |
tree | db19abca93410fd629ff79a4b55da53df3037a8f /src/com/android/launcher3/PagedView.java | |
parent | 249822b29a88d6615367dd955a0af9e350e28270 (diff) | |
download | android_packages_apps_Trebuchet-8694d9a7c57b7ba45ff0922670a39d59ad643025.tar.gz android_packages_apps_Trebuchet-8694d9a7c57b7ba45ff0922670a39d59ad643025.tar.bz2 android_packages_apps_Trebuchet-8694d9a7c57b7ba45ff0922670a39d59ad643025.zip |
Refactor RTL wallpaper code to use getLayoutTransitionOffsetForPage
Bug: 11157913
Change-Id: I7bcef8985cc57601bb5936891df22b11ed6f494c
Diffstat (limited to 'src/com/android/launcher3/PagedView.java')
-rw-r--r-- | src/com/android/launcher3/PagedView.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index dbec42fa8..390f9635c 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -266,8 +266,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc protected final Rect mInsets = new Rect(); - protected int mFirstChildLeft; - private Runnable mDelayedSnapToPageRunnable; // Relating to the scroll and overscroll effects @@ -912,10 +910,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc requestLayout(); } - protected int getFirstChildLeft() { - return mFirstChildLeft; - } - @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { if (!mIsDataReady || getChildCount() == 0) { @@ -941,7 +935,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc int verticalPadding = getPaddingTop() + getPaddingBottom(); - int childLeft = mFirstChildLeft = offsetX + (screenWidth - getChildWidth(startIndex)) / 2; + int childLeft = offsetX + (screenWidth - getChildWidth(startIndex)) / 2; if (mPageScrolls == null || getChildCount() != mChildCountOnLastLayout) { mPageScrolls = new int[getChildCount()]; } |