// processing a multi-step drop
if (mAppsCustomizeTabHost != null && mPendingAddInfo.container == ItemInfo.NO_ID) {
mAppsCustomizeTabHost.reset();
- showWorkspace(false);
+ showWorkspaceAndExitOverviewMode(false);
}
} else if (Intent.ACTION_USER_PRESENT.equals(action)) {
mUserPresent = true;
// If we are already on home, then just animate back to the workspace,
// otherwise, just wait until onResume to set the state back to Workspace
if (alreadyOnHome) {
- showWorkspaceAndExitOverviewMode();
+ showWorkspaceAndExitOverviewMode(true);
} else {
mOnResumeState = State.WORKSPACE;
}
}
}
- protected void showWorkspaceAndExitOverviewMode() {
- showWorkspace(true);
+ protected void showWorkspaceAndExitOverviewMode(boolean animate) {
+ showWorkspace(animate);
if (mWorkspace.isInOverviewMode()) {
- mWorkspace.exitOverviewMode(true);
+ mWorkspace.exitOverviewMode(animate);
}
}
+ protected void showWorkspaceAndExitOverviewMode() {
+ showWorkspaceAndExitOverviewMode(true);
+ }
@Override
public void onRestoreInstanceState(Bundle state) {