From f42fe856a6973432a24160d95fbea0cbe4fdbc59 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 9 Jun 2020 08:13:13 -0700 Subject: [PATCH] Remove debug logs for b/153821199 Bug: 153821199 Change-Id: If8996162d1ab48147abd97a27c2ad163696822d7 --- .../android/launcher3/LauncherAnimationRunner.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java index fc60434215..5ad0bca11f 100644 --- a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java +++ b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java @@ -26,7 +26,6 @@ import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.os.Handler; -import android.util.Log; import androidx.annotation.BinderThread; import androidx.annotation.UiThread; @@ -154,16 +153,8 @@ public abstract class LauncherAnimationRunner implements RemoteAnimationRunnerCo // Because t=0 has the app icon in its original spot, we can skip the // first frame and have the same movement one frame earlier. - int singleFrameMs = getSingleFrameMs(context); - long playTime = singleFrameMs; - // b/153821199 Add logs to debug crash but ensure release builds do not crash. - if (Utilities.IS_DEBUG_DEVICE) { - Log.e(TAG, "Total duration=[" + mAnimator.getTotalDuration() - + "], singleFrameMs=[" + singleFrameMs + "], mAnimator=" + mAnimator); - } else { - playTime = Math.min(singleFrameMs, mAnimator.getTotalDuration()); - } - mAnimator.setCurrentPlayTime(playTime); + mAnimator.setCurrentPlayTime( + Math.min(getSingleFrameMs(context), mAnimator.getTotalDuration())); } } }