Add API to launcher to insert a custom page to the left of workspace

Change-Id: I85a4e096aab9bfcb1de74f04075bcabcb7e3262f
This commit is contained in:
Adam Cohen
2013-06-11 12:48:00 -07:00
parent ecf33e4819
commit 66a01fd24b
3 changed files with 73 additions and 0 deletions

View File

@@ -398,6 +398,12 @@ public class Workspace extends SmoothPagedView
UninstallShortcutReceiver.disableAndFlushUninstallQueue(getContext());
}
// Just a hack so that if a custom content screen is added to the left, we adjust the
// default screen accordingly so that it stays the same.
void incrementDefaultScreen() {
mDefaultPage++;
}
/**
* Initializes various states for this workspace.
*/