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