diff options
author | Adam Cohen <adamcohen@google.com> | 2014-06-11 11:38:49 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2014-06-11 11:47:56 -0700 |
commit | 6ea3b116fc2eea7cc1a6892c548da45a4f581a1d (patch) | |
tree | 8180abc9db8696d79757b32e88693e1ed934de65 /src/com | |
parent | 71b0473f24a7d77263aae88139f13298a1d64b27 (diff) | |
download | android_packages_apps_Trebuchet-6ea3b116fc2eea7cc1a6892c548da45a4f581a1d.tar.gz android_packages_apps_Trebuchet-6ea3b116fc2eea7cc1a6892c548da45a4f581a1d.tar.bz2 android_packages_apps_Trebuchet-6ea3b116fc2eea7cc1a6892c548da45a4f581a1d.zip |
Override app launch transition for LMP preview
issue 15544569 j)
Change-Id: I8aff85a154cb98d865a8834f37b13e30cd03de6c
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index e5a17c0d7..60efcea6d 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2744,6 +2744,10 @@ public class Launcher extends Activity v.getMeasuredWidth(), v.getMeasuredHeight()); optsBundle = opts.toBundle(); } + if (useLaunchAnimation && Utilities.isLmp()) { + ActivityOptions opts = ActivityOptions.makeCustomAnimation(this, R.anim.task_open_enter, R.anim.no_anim); + optsBundle = opts.toBundle(); + } if (user == null || user.equals(UserHandleCompat.myUserHandle())) { // Could be launching some bookkeeping activity |