mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Following correct pattern for using logToggleRecents
It supposed to involve checking enabledness. Bug: 72967764 Test: No Change-Id: I2a852932c665c24b8dc7c65f63bdaea91fa7ee5f
This commit is contained in:
@@ -275,8 +275,10 @@ public class OverviewCommandHelper {
|
||||
}
|
||||
|
||||
private AnimatorSet createWindowAnimation(RemoteAnimationTargetCompat[] targetCompats) {
|
||||
LatencyTrackerCompat.logToggleRecents(
|
||||
(int) (SystemClock.uptimeMillis() - mToggleClickedTime));
|
||||
if (LatencyTrackerCompat.isEnabled(mContext)) {
|
||||
LatencyTrackerCompat.logToggleRecents(
|
||||
(int) (SystemClock.uptimeMillis() - mToggleClickedTime));
|
||||
}
|
||||
|
||||
if (mListener != null) {
|
||||
mListener.unregister();
|
||||
|
||||
@@ -435,9 +435,8 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
|
||||
mLayoutListener.setHandler(this);
|
||||
buildAnimationController();
|
||||
|
||||
final long transitionDelay = mLauncherFrameDrawnTime - mTouchTimeMs;
|
||||
if (LatencyTrackerCompat.isEnabled(mContext)) {
|
||||
LatencyTrackerCompat.logToggleRecents((int) transitionDelay);
|
||||
LatencyTrackerCompat.logToggleRecents((int) (mLauncherFrameDrawnTime - mTouchTimeMs));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user