summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-24 06:17:26 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-24 06:17:26 -0700
commit1d5064b8dc0670afa28791cebfec6bb468e98e3e (patch)
tree762a0413e093c30b7a3b7cd94d0ccebeb51e7e1b /src
parent173790f52db24424a054064f6b94d862a07914ce (diff)
parentd6027ed5a6fc15bb45a7d08eaf2d7b627cc58b75 (diff)
Merge "Add debug logging for task view touch controllers." into main
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Utilities.java11
1 files changed, 11 insertions, 0 deletions
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.
+ *
+ * <p>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);
+ }
+ }
}