π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Rename
laurenspriemc1fe756a869e
diff --git a/mobile/lib/services/machine_learning/ml_service.dart b/mobile/lib/services/machine_learning/ml_service.dartindex a03625873e..f7642c2a57 100644--- a/mobile/lib/services/machine_learning/ml_service.dart+++ b/mobile/lib/services/machine_learning/ml_service.dart@@ -86,7 +86,7 @@ class FaceMlService {static const int _fileDownloadLimit = 10;static const _kForceClusteringFaceCount = 8000;- /// Only call this function once at app startup, after that you can directly call [runAllFaceML]+ /// Only call this function once at app startup, after that you can directly call [runAllML]Future<void> init() async {if (LocalSettings.instance.isFaceIndexingEnabled == false ||_isInitialized) {@@ -114,7 +114,7 @@ class FaceMlService {"MLController allowed running ML, faces indexing starting",);}- unawaited(runAllFaceML());+ unawaited(runAllML());} else {_logger.info("MLController stopped running ML, faces indexing will be paused (unless it's fetching embeddings)",@@ -132,7 +132,7 @@ class FaceMlService {await SemanticSearchService.instance.sync();}- Future<void> runAllFaceML({bool force = false}) async {+ Future<void> runAllML({bool force = false}) async {if (force) {_mlControllerStatus = true;}diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dartindex 022229ba00..825fba3dcf 100644--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart@@ -149,7 +149,7 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {onTap: () async {try {FaceMlService.instance.debugIndexingDisabled = false;- unawaited(FaceMlService.instance.runAllFaceML());+ unawaited(FaceMlService.instance.runAllML());} 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 c2f8ffaf54..80ce29a15a 100644--- a/mobile/lib/ui/settings/machine_learning_settings_page.dart+++ b/mobile/lib/ui/settings/machine_learning_settings_page.dart@@ -224,7 +224,8 @@ class _MachineLearningSettingsPageStateawait LocalSettings.instance.toggleFaceIndexing();if (isEnabled) {await FaceMlService.instance.init();- unawaited(FaceMlService.instance.runAllFaceML(force: true));+ await SemanticSearchService.instance.init();+ unawaited(FaceMlService.instance.runAllML(force: true));} else {FaceMlService.instance.pauseIndexingAndClustering();}