mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 17:48:20 +00:00
Remove 300 ms start delay from app launch transition
-> tiny cleanup from isLmp crunch issue 16309411 Change-Id: Ib2edff84b53ca471e7d2a2a458091db1fa2f6b42
This commit is contained in:
@@ -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>
|
||||
</set>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user