summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
+ }
+ }
}