refactor(android): remove dead thermal sdk branch

This commit is contained in:
Ayaan Zaidi
2026-02-26 20:46:23 +05:30
committed by Ayaan Zaidi
parent d768c1f81c
commit d14e734e9c

View File

@@ -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"