Lazily instantiate LauncherAppState.

The application context for LauncherAppState is supplied by
the application whenever it starts; don't ask for an
instance before that.

Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
This commit is contained in:
Daniel Sandler committed 2013-06-27 15:17:11 -04:00
1 parent fe7750b5d6
commit e4f9891f01
23 files changed
+170 -215

No files matched your search

@@ -91,7 +91,8 @@ public class PagedViewCellLayoutChildren extends ViewGroup {
View child = getChildAt(i);
PagedViewCellLayout.LayoutParams lp =
(PagedViewCellLayout.LayoutParams) child.getLayoutParams();
lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
lp.setup(getContext(),
mCellWidth, mCellHeight, mWidthGap, mHeightGap,
getPaddingLeft(),
getPaddingTop());