diff --git a/res/anim/task_open_enter.xml b/res/anim/task_open_enter.xml index b2aadd7fa7..3eb191537b 100644 --- a/res/anim/task_open_enter.xml +++ b/res/anim/task_open_enter.xml @@ -23,12 +23,12 @@ - \ No newline at end of file + diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 3cbe1c1dd2..a5bf690d74 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2776,12 +2776,9 @@ public class Launcher extends Activity Bundle optsBundle = null; if (useLaunchAnimation) { - ActivityOptions opts = ActivityOptions.makeScaleUpAnimation(v, 0, 0, - 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); + ActivityOptions opts = Utilities.isLmp() ? + ActivityOptions.makeCustomAnimation(this, R.anim.task_open_enter, R.anim.no_anim) : + ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getMeasuredWidth(), v.getMeasuredHeight()); optsBundle = opts.toBundle(); }