π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Rename
laurenspriemca7096b87c4c
diff --git a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dartindex 6737dac77a..adad5afaf3 100644--- a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart@@ -102,7 +102,7 @@ class FaceMlService {static const _embeddingFetchLimit = 200;static const _kForceClusteringFaceCount = 8000;- /// Only call this function once at app startup, after that you can directly call [indexAndClusterAll]+ /// Only call this function once at app startup, after that you can directly call [runAllFaceML]Future<void> init() async {if (LocalSettings.instance.isFaceIndexingEnabled == false ||_isInitialized) {@@ -127,7 +127,7 @@ class FaceMlService {"MLController allowed running ML, faces indexing starting",);}- unawaited(indexAndClusterAll());+ unawaited(runAllFaceML());} else {_logger.info("MLController stopped running ML, faces indexing will be paused (unless it's fetching embeddings)",@@ -164,7 +164,7 @@ class FaceMlService {_isSyncing = false;}- Future<void> indexAndClusterAll() async {+ Future<void> runAllFaceML() async {if (_cannotRunMLFunction()) return;await sync(forceSync: _shouldSyncPeople);diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dartindex 844f71c01b..1658d6a5f7 100644--- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart@@ -149,7 +149,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {onTap: () async {try {FaceMlService.instance.debugIndexingDisabled = false;- unawaited(FaceMlService.instance.indexAndClusterAll());+ unawaited(FaceMlService.instance.runAllFaceML());} catch (e, s) {_logger.warning('indexAndClusterAll failed ', e, s);await showGenericErrorDialog(context: context, error: e);diff --git a/mobile/lib/ui/settings/machine_learning_settings_page.dart b/mobile/lib/ui/settings/machine_learning_settings_page.dartindex 1ee333b591..a284f6d98a 100644--- a/mobile/lib/ui/settings/machine_learning_settings_page.dart+++ b/mobile/lib/ui/settings/machine_learning_settings_page.dart@@ -223,7 +223,8 @@ class _MachineLearningSettingsPageStatefinal isEnabled =await LocalSettings.instance.toggleFaceIndexing();if (isEnabled) {- unawaited(FaceMlService.instance.indexAndClusterAll());+ await FaceMlService.instance.init();+ unawaited(FaceMlService.instance.runAllFaceML());} else {FaceMlService.instance.pauseIndexingAndClustering();}