Update LatencyTracker usage in Launcher

Test: manual - flashed the phone and verified the logging and statsd sampling with default settings
Bug: 131859447, 162927074
Change-Id: I2d0c9fd479654c62841c714eb39f88f84e8ab114
This commit is contained in:
Marcin Oczeretko
2020-10-08 16:05:08 +01:00
parent 8db774b833
commit 0ee7ffca7f
2 changed files with 4 additions and 9 deletions

View File

@@ -224,10 +224,8 @@ public class OverviewCommandHelper {
private AnimatorSet createWindowAnimation(RemoteAnimationTargetCompat[] appTargets,
RemoteAnimationTargetCompat[] wallpaperTargets) {
if (LatencyTrackerCompat.isEnabled(mContext)) {
LatencyTrackerCompat.logToggleRecents(
(int) (SystemClock.uptimeMillis() - mToggleClickedTime));
}
LatencyTrackerCompat.logToggleRecents(
mContext, (int) (SystemClock.uptimeMillis() - mToggleClickedTime));
mListener.unregister();