From 2e52c90b3ff0a04bd734aa19c54c39cef186b653 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Mon, 6 Apr 2015 13:11:28 -0700 Subject: [PATCH] resolved conflicts for merge of 68fdeaad to ub-launcher3-burnaby Change-Id: I29aa5b37968b1ced81cdeb68a021db9310047252 --- res/anim/fade_in_fast.xml | 23 ----------------------- res/anim/fade_out_fast.xml | 23 ----------------------- res/anim/no_anim.xml | 18 ------------------ src/com/android/launcher3/Launcher.java | 9 +++------ 4 files changed, 3 insertions(+), 70 deletions(-) delete mode 100644 res/anim/fade_in_fast.xml delete mode 100644 res/anim/fade_out_fast.xml delete mode 100644 res/anim/no_anim.xml diff --git a/res/anim/fade_in_fast.xml b/res/anim/fade_in_fast.xml deleted file mode 100644 index 4fa9847aa8..0000000000 --- a/res/anim/fade_in_fast.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/res/anim/fade_out_fast.xml b/res/anim/fade_out_fast.xml deleted file mode 100644 index a061a6ca9a..0000000000 --- a/res/anim/fade_out_fast.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/res/anim/no_anim.xml b/res/anim/no_anim.xml deleted file mode 100644 index 02b162519a..0000000000 --- a/res/anim/no_anim.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index c040d93f28..2fa2f4ad70 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2958,14 +2958,11 @@ public class Launcher extends Activity sClipRevealMethod = null; } } - if (opts == null) { - opts = Utilities.isLmpOrAbove() ? - ActivityOptions.makeCustomAnimation(this, - R.anim.task_open_enter, R.anim.no_anim) : - ActivityOptions.makeScaleUpAnimation(v, 0, 0, + if (opts == null && !Utilities.isLmpOrAbove()) { + opts = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getMeasuredWidth(), v.getMeasuredHeight()); } - optsBundle = opts.toBundle(); + optsBundle = opts != null ? opts.toBundle() : null; } if (user == null || user.equals(UserHandleCompat.myUserHandle())) {