Fix now showing on screen 1

Change-Id: I83c3aa0b219e62af8c024229fe00933bcedbf9df
This commit is contained in:
Adam Cohen
2013-06-27 15:08:59 -07:00
parent 06e6c8c50b
commit 41eb470ef9
2 changed files with 5 additions and 34 deletions
+5 -1
View File
@@ -513,7 +513,7 @@ public class Workspace extends SmoothPagedView
public void addCustomContentToLeft(View customContent) {
CellLayout customScreen = (CellLayout)
mLauncher.getLayoutInflater().inflate(R.layout.workspace_custom_content, null);
mLauncher.getLayoutInflater().inflate(R.layout.workspace_screen, null);
int spanX = customScreen.getCountX();
int spanY = customScreen.getCountY();
@@ -523,6 +523,10 @@ public class Workspace extends SmoothPagedView
customScreen.addViewToCellLayout(customContent, 0, 0, lp, true);
Rect p = new Rect();
AppWidgetHostView.getDefaultPaddingForWidget(mLauncher, mLauncher.getComponentName(), p);
customContent.setPadding(p.left, p.top, p.right, p.bottom);
addView(customScreen, 0);
mWorkspaceScreens.put(CUSTOM_CONTENT_SCREEN_ID, customScreen);