Reduces Assist Handle fade out duration

This matches home handle behavior and ensures that the handles are gone
when the screen fades.

Test: Tested locally
BUG:133767295
Change-Id: Ib8a5ee8c2a408cdf6f0f0741047b3f9f2d3bddff
FIX:133767295
This commit is contained in:
Govinda Wasserman
2019-06-12 14:41:36 -04:00
parent c5e858a2c2
commit 4f706c2260

View File

@@ -64,6 +64,7 @@ import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewTreeObserver;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Interpolator;
import android.view.animation.PathInterpolator;
import android.widget.FrameLayout;
@@ -231,7 +232,10 @@ public class ScreenDecorations extends SystemUI implements Tunable,
anim.start();
} else {
view.animate().cancel();
view.animate().setDuration(400).alpha(0f);
view.animate()
.setInterpolator(new AccelerateInterpolator(1.5f))
.setDuration(250)
.alpha(0f);
}
}