mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
This commit is contained in:
@@ -24,6 +24,7 @@ import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.animation.LinearInterpolator;
|
||||
|
||||
import com.android.launcher3.anim.AnimationLayerSet;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
|
||||
|
||||
@@ -211,7 +212,8 @@ public class PinchAnimationManager {
|
||||
}
|
||||
|
||||
private void animateShowHideView(int index, final View view, boolean show) {
|
||||
Animator animator = new LauncherViewPropertyAnimator(view).alpha(show ? 1 : 0).withLayer();
|
||||
Animator animator = ObjectAnimator.ofFloat(view, View.ALPHA, show ? 1 : 0);
|
||||
animator.addListener(new AnimationLayerSet(view));
|
||||
if (show) {
|
||||
view.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user