π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[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.dartindex 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();}