diff options
| author | 2023-03-01 11:14:04 +0000 | |
|---|---|---|
| committer | 2023-03-01 11:16:04 +0000 | |
| commit | 98e019877760a2b6ddc44f33709b99a36e1866a9 (patch) | |
| tree | b166503abff798d025d4a924b234e46a7d966634 | |
| parent | ee7c75c0d2a20f9e5c3008d7aaeb4a8b07b078bc (diff) | |
Use debuggable build in StylusManager debugging logs.
Test: StyluManagerTest
Bug: 270921479
Change-Id: I98ddd23aba29af24c533bc2e1cf7f6ca0131af9e
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/stylus/StylusManager.kt | 4 |
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()) } } |