Updating launcher transitions.

Change-Id: I32b35189fe05a1c0db0ac1d7f508b1560088f635
This commit is contained in:
Winson Chung
2012-04-17 17:34:08 -07:00
parent c3a8040428
commit c7450e3ebd
4 changed files with 42 additions and 7 deletions
@@ -518,12 +518,18 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
if (v instanceof PagedViewIcon) {
// Animate some feedback to the click
final ApplicationInfo appInfo = (ApplicationInfo) v.getTag();
mLauncher.startActivitySafely(appInfo.intent, appInfo);
// Lock the drawable state to pressed until we return to Launcher
if (mPressedIcon != null) {
mPressedIcon.lockDrawableState();
}
// NOTE: we need to re-enable the wallpaper visibility if we want correct transitions
// between items that are launched from the workspace and all apps. It will be disabled
// correctly the next time the window is visible in AppsCustomizeTabHost.
mLauncher.updateWallpaperVisibility(true);
mLauncher.startActivitySafely(v, appInfo.intent, appInfo);
} else if (v instanceof PagedViewWidget) {
// Let the user know that they have to long press to add a widget
Toast.makeText(getContext(), R.string.long_press_widget_to_add,