Cleanup API checks for P, Q, and R.
Test: Build with gradle Flag: NA Change-Id: I3ef17090741d14bebd76cf09cf3dc5ac4f11e686
This commit is contained in:
@@ -25,7 +25,6 @@ import android.animation.ValueAnimator;
|
||||
import android.os.Trace;
|
||||
import android.util.FloatProperty;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.anim.AnimatorPlaybackController.Holder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -86,7 +85,7 @@ public class PendingAnimation extends AnimatedPropertySetter {
|
||||
|
||||
/** If trace is enabled, add counter to trace animation progress. */
|
||||
public void logAnimationProgressToTrace(String counterName) {
|
||||
if (Utilities.ATLEAST_Q && Trace.isEnabled()) {
|
||||
if (Trace.isEnabled()) {
|
||||
super.addOnFrameListener(
|
||||
animation -> Trace.setCounter(
|
||||
counterName, (long) (animation.getAnimatedFraction() * 100)));
|
||||
|
||||
Reference in New Issue
Block a user