summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-07-28 10:56:19 -0700
committerAdam Cohen <adamcohen@google.com>2014-07-28 15:07:18 -0700
commit4da294de83f7557f3e479c56c35ce1491c1936dd (patch)
treeb1454fc198f078d1c0695f8c3b3e4c795311d56c
parent43f3ca0f8c424415dfa0cd6c269900638da3d21c (diff)
downloadandroid_packages_apps_Trebuchet-4da294de83f7557f3e479c56c35ce1491c1936dd.tar.gz
android_packages_apps_Trebuchet-4da294de83f7557f3e479c56c35ce1491c1936dd.tar.bz2
android_packages_apps_Trebuchet-4da294de83f7557f3e479c56c35ce1491c1936dd.zip
Remove 300 ms start delay from app launch transition
-> tiny cleanup from isLmp crunch issue 16309411 Change-Id: Ib2edff84b53ca471e7d2a2a458091db1fa2f6b42
-rw-r--r--res/anim/task_open_enter.xml6
-rw-r--r--src/com/android/launcher3/Launcher.java9
2 files changed, 6 insertions, 9 deletions
diff --git a/res/anim/task_open_enter.xml b/res/anim/task_open_enter.xml
index b2aadd7fa..3eb191537 100644
--- a/res/anim/task_open_enter.xml
+++ b/res/anim/task_open_enter.xml
@@ -23,12 +23,12 @@
<alpha android:fromAlpha="0" android:toAlpha="1.0"
android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true"
android:interpolator="@interpolator/decelerate_quart"
- android:startOffset="300"
+ android:startOffset="0"
android:duration="167"/>
<translate android:fromYDelta="110%" android:toYDelta="0"
android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true"
android:interpolator="@interpolator/decelerate_quint"
- android:startOffset="300"
+ android:startOffset="0"
android:duration="417" />
-</set> \ No newline at end of file
+</set>
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 3cbe1c1dd..a5bf690d7 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();
}