From 3fa16625be66906c7bb2a4655344fa53d66e4d83 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:53:22 +0530 Subject: [PATCH] [mob] Skip disabling consent on mobile --- mobile/lib/ui/settings/machine_learning_settings_page.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/lib/ui/settings/machine_learning_settings_page.dart b/mobile/lib/ui/settings/machine_learning_settings_page.dart index 9f2acf5961..1bbef35ab1 100644 --- a/mobile/lib/ui/settings/machine_learning_settings_page.dart +++ b/mobile/lib/ui/settings/machine_learning_settings_page.dart @@ -194,8 +194,10 @@ class _MachineLearningSettingsPageState await SemanticSearchService.instance.init(); unawaited(MLService.instance.runAllML(force: true)); } else { - await UserRemoteFlagService.instance - .setBoolValue(UserRemoteFlagService.mlEnabled, false); + // todo: Take a call if we should disable ML from other devices as well + // when the user turns off indexing on mobile + // await UserRemoteFlagService.instance + // .setBoolValue(UserRemoteFlagService.mlEnabled, false); } if (mounted) { setState(() {});