Adding signposting to Phone UI in Workspace/AppsCustomize.

Change-Id: Id63f247745a5ec1a63bbaff84602e4c91354f789
This commit is contained in:
Winson Chung
2011-06-14 13:27:53 -07:00
parent 1dfdf234cc
commit 007c69867d
8 changed files with 145 additions and 12 deletions
@@ -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();
}
}