Merge "Use debuggable build in StylusManager debugging logs." into udc-dev am: 1edc7145f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21611353 Change-Id: I32f52d6fee3b5426cc3a88f99d8818b12e7496c4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import android.content.Context
|
|||||||
import android.hardware.BatteryState
|
import android.hardware.BatteryState
|
||||||
import android.hardware.input.InputManager
|
import android.hardware.input.InputManager
|
||||||
import android.hardware.input.InputSettings
|
import android.hardware.input.InputSettings
|
||||||
|
import android.os.Build
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.util.ArrayMap
|
import android.util.ArrayMap
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
@@ -398,12 +399,11 @@ constructor(
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val TAG = StylusManager::class.simpleName.orEmpty()
|
val TAG = StylusManager::class.simpleName.orEmpty()
|
||||||
const val DEBUG = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private inline fun logDebug(message: () -> String) {
|
private inline fun logDebug(message: () -> String) {
|
||||||
if (StylusManager.DEBUG) {
|
if (Build.IS_DEBUGGABLE) {
|
||||||
Log.d(StylusManager.TAG, message())
|
Log.d(StylusManager.TAG, message())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user