From d6027ed5a6fc15bb45a7d08eaf2d7b627cc58b75 Mon Sep 17 00:00:00 2001 From: Pat Manning Date: Mon, 17 Mar 2025 15:35:02 +0000 Subject: Add debug logging for task view touch controllers. Proguard should remove these logging paths from user builds. Bug: 350398650 Test: Manual. Verify logs are present. Flag: com.android.launcher3.enable_expressive_dismiss_task_motion Change-Id: Ie1d1532782c443672cde5c5dfe1ccaa49e100cd3 --- src/com/android/launcher3/Utilities.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index d6ae3a6335..79774b26c6 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -964,4 +964,15 @@ public final class Utilities { return null; } } + + /** + * Logs with DEBUG priority if the current device is a debug device. + * + *

Debug devices by default include -eng and -userdebug builds, but not -user builds. + */ + public static void debugLog(String tag, String message) { + if (BuildConfig.IS_DEBUG_DEVICE) { + Log.d(tag, message); + } + } } -- cgit v1.2.3-59-g8ed1b