mirror of https://github.com/openclaw/openclaw.git
refactor(android): remove dead thermal sdk branch
This commit is contained in:
parent
d768c1f81c
commit
d14e734e9c
|
|
@ -129,9 +129,6 @@ class DeviceHandler(
|
|||
}
|
||||
|
||||
private fun mapThermalState(powerManager: PowerManager?): String {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
|
||||
return "nominal"
|
||||
}
|
||||
val thermal = powerManager?.currentThermalStatus ?: return "nominal"
|
||||
return when (thermal) {
|
||||
PowerManager.THERMAL_STATUS_NONE, PowerManager.THERMAL_STATUS_LIGHT -> "nominal"
|
||||
|
|
|
|||
Loading…
Reference in New Issue