From f34b4cd56c7defbfb0d12c0545d477563af4e0c3 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Thu, 1 Dec 2022 11:45:31 +0000 Subject: [PATCH] Logging fold update name instead of just integer for easier bug report reading Test: no need, just log update Bug: 255208946 Change-Id: I942eded274e7cbaa760e6c8c8dbbe88b7f653b34 --- .../progress/PhysicsBasedUnfoldTransitionProgressProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/PhysicsBasedUnfoldTransitionProgressProvider.kt b/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/PhysicsBasedUnfoldTransitionProgressProvider.kt index b56818693124e..52fb0a79a2bb5 100644 --- a/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/PhysicsBasedUnfoldTransitionProgressProvider.kt +++ b/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/PhysicsBasedUnfoldTransitionProgressProvider.kt @@ -31,6 +31,7 @@ import com.android.systemui.unfold.updates.FOLD_UPDATE_UNFOLDED_SCREEN_AVAILABLE import com.android.systemui.unfold.updates.FoldStateProvider import com.android.systemui.unfold.updates.FoldStateProvider.FoldUpdate import com.android.systemui.unfold.updates.FoldStateProvider.FoldUpdatesListener +import com.android.systemui.unfold.updates.name /** Maps fold updates to unfold transition progress using DynamicAnimation. */ class PhysicsBasedUnfoldTransitionProgressProvider( @@ -117,7 +118,7 @@ class PhysicsBasedUnfoldTransitionProgressProvider( } if (DEBUG) { - Log.d(TAG, "onFoldUpdate = $update") + Log.d(TAG, "onFoldUpdate = ${update.name()}") Trace.traceCounter(Trace.TRACE_TAG_APP, "fold_update", update) } }