Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Fix: use OS specific logic for computing device health

Neeraj Guptaeca8f3432ed2
diff --git a/mobile/lib/services/machine_learning/compute_controller.dart b/mobile/lib/services/machine_learning/compute_controller.dart
index b3191e46e1..dfc663f85c 100644
--- a/mobile/lib/services/machine_learning/compute_controller.dart
+++ b/mobile/lib/services/machine_learning/compute_controller.dart
@@ -192,7 +192,9 @@ class ComputeController {
void _onThermalStateUpdate(ThermalStatus? thermalStatus) {
_lastThermalStatus = thermalStatus;
_logger.info("Thermal status: $thermalStatus");
- _isDeviceHealthy = _computeIsAndroidDeviceHealthy();
+ _isDeviceHealthy = Platform.isAndroid
+ ? _computeIsAndroidDeviceHealthy()
+ : _computeIsiOSDeviceHealthy();
_fireControlEvent();
}