summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-06-14 13:27:53 -0700
committerWinson Chung <winsonc@google.com>2011-06-14 16:02:56 -0700
commit007c69867d821ea2b271398577a8b3440b3a7046 (patch)
treec850cd8c83b13fd5941bdeb78b75212394847d90 /src/com/android/launcher2/AppsCustomizePagedView.java
parent1dfdf234cc70f5c6d0b74895babd31a5d0e36222 (diff)
downloadandroid_packages_apps_Trebuchet-007c69867d821ea2b271398577a8b3440b3a7046.tar.gz
android_packages_apps_Trebuchet-007c69867d821ea2b271398577a8b3440b3a7046.tar.bz2
android_packages_apps_Trebuchet-007c69867d821ea2b271398577a8b3440b3a7046.zip
Adding signposting to Phone UI in Workspace/AppsCustomize.
Change-Id: Id63f247745a5ec1a63bbaff84602e4c91354f789
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/AppsCustomizePagedView.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index dfdbce917..5b4f15062 100644
--- a/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -84,7 +84,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
private IconCache mIconCache;
// Dimens
- private Runnable mOnSizeChangedCallback;
private int mContentWidth;
private int mMaxWidgetSpan, mMinWidgetSpan;
private int mWidgetWidthGap, mWidgetHeightGap;
@@ -190,11 +189,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
mWidgetCountY = Math.max(1, (int) Math.round(mCellCountY / 3f));
mContentWidth = mWidgetSpacingLayout.getContentWidth();
- // Notify our parent so that we can synchronize the tab bar width to this page width
- if (mOnSizeChangedCallback != null) {
- mOnSizeChangedCallback.run();
- }
-
invalidatePageData();
}
@@ -213,10 +207,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
- public void setOnSizeChangedCallback(Runnable r) {
- mOnSizeChangedCallback = r;
- }
-
/** Removes and returns the ResolveInfo with the specified ComponentName */
private ResolveInfo removeResolveInfoWithComponentName(List<ResolveInfo> list,
ComponentName cn) {
@@ -886,4 +876,9 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// TODO: If we are in the middle of any process (ie. for holographic outlines, etc) we
// should stop this now.
}
+
+ @Override
+ protected int getPageWidthForScrollingIndicator() {
+ return getPageContentWidth();
+ }
}