summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vania Januar <vanjan@google.com> 2023-03-02 10:37:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-02 10:37:14 +0000
commit1edc7145f7c9c7ee9d739f515cea9ca1b481ee89 (patch)
treefd614621c730d48791bdb310f2b82de5c79b2872
parentb153d19b134d494d381a3acd5e9fd2ab8987d371 (diff)
parent98e019877760a2b6ddc44f33709b99a36e1866a9 (diff)
Merge "Use debuggable build in StylusManager debugging logs." into udc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt b/packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt
index 4e27ce6721d7..030c54fbd87d 100644
--- a/packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt
+++ b/packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt
@@ -22,6 +22,7 @@ import android.content.Context
import android.hardware.BatteryState
import android.hardware.input.InputManager
import android.hardware.input.InputSettings
+import android.os.Build
import android.os.Handler
import android.util.ArrayMap
import android.util.Log
@@ -398,12 +399,11 @@ constructor(
companion object {
val TAG = StylusManager::class.simpleName.orEmpty()
- const val DEBUG = false
}
}
private inline fun logDebug(message: () -> String) {
- if (StylusManager.DEBUG) {
+ if (Build.IS_DEBUGGABLE) {
Log.d(StylusManager.TAG, message())
}
}