diff --git a/native/android/app/build.gradle.kts b/native/android/app/build.gradle.kts index ebb00d4..81603c5 100644 --- a/native/android/app/build.gradle.kts +++ b/native/android/app/build.gradle.kts @@ -20,8 +20,8 @@ android { applicationId = "com.matchlivetv.match_live_tv" minSdk = 24 targetSdk = 36 - versionCode = 26 - versionName = "2.0.5-native" + versionCode = 27 + versionName = "2.0.6-native" val apiBaseUrl = project.findProperty("API_BASE_URL") as String? ?: "https://www.matchlivetv.it" diff --git a/native/android/app/src/main/kotlin/com/matchlivetv/match_live_tv/core/ThermalStateManager.kt b/native/android/app/src/main/kotlin/com/matchlivetv/match_live_tv/core/ThermalStateManager.kt index da2b411..f9e1053 100644 --- a/native/android/app/src/main/kotlin/com/matchlivetv/match_live_tv/core/ThermalStateManager.kt +++ b/native/android/app/src/main/kotlin/com/matchlivetv/match_live_tv/core/ThermalStateManager.kt @@ -40,12 +40,13 @@ class ThermalStateManager( fun start() { monitor.onStateChanged = { next -> val previous = _state.value - if (next == previous) return@onStateChanged - Log.i(TAG, "[Thermal] $previous → $next") - _state.value = next - _noticeMessage.value = userNotice(next, previous) - applyAdaptation(next, force = false) - updateCriticalWatch(next) + if (next != previous) { + Log.i(TAG, "[Thermal] $previous → $next") + _state.value = next + _noticeMessage.value = userNotice(next, previous) + applyAdaptation(next, force = false) + updateCriticalWatch(next) + } } monitor.start() _state.value = monitor.currentState