From 84c7e4e84dce215b1035f8e15195c3f33b75231a Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Mon, 12 Feb 2024 16:11:31 -0800 Subject: [PATCH] Set debug logging flag for ClockDrawableWrapper Bug: 319168409 Change-Id: Id154287a12e1b51a0aeabacebcd32bc695bdcc0b --- .../android/launcher3/testing/DebugTestInformationHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java b/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java index 29b24b797c..6e7a82ae5c 100644 --- a/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java +++ b/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java @@ -33,6 +33,7 @@ import com.android.launcher3.BubbleTextView; import com.android.launcher3.LauncherAppState; import com.android.launcher3.LauncherModel; import com.android.launcher3.ShortcutAndWidgetContainer; +import com.android.launcher3.icons.ClockDrawableWrapper; import com.android.launcher3.testing.shared.TestProtocol; import java.util.ArrayList; @@ -136,10 +137,12 @@ public class DebugTestInformationHandler extends TestInformationHandler { case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING: TestProtocol.sDebugTracing = true; + ClockDrawableWrapper.sRunningInTest = true; return response; case TestProtocol.REQUEST_DISABLE_DEBUG_TRACING: TestProtocol.sDebugTracing = false; + ClockDrawableWrapper.sRunningInTest = false; return response; case TestProtocol.REQUEST_PID: {