Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Drop unreachable People consent sheet entry

r4khul7ebfbe5dbd06
diff --git a/mobile/apps/photos/changes/ml-consent-screen.md b/mobile/apps/photos/changes/ml-consent-screen.md
index 2887491db4..62169c876d 100644
--- a/mobile/apps/photos/changes/ml-consent-screen.md
+++ b/mobile/apps/photos/changes/ml-consent-screen.md
@@ -1 +1 @@
-- Refreshed the machine learning consent screen and added a consent sheet for the home banner, Search and People widgets.
+- Refreshed the machine learning consent screen and added a consent sheet for the home banner and People widgets.
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart
index 35160290c0..3d18fa3b83 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart
@@ -13,12 +13,10 @@ import "package:photos/models/search/search_constants.dart";
import "package:photos/models/search/search_result.dart";
import "package:photos/models/search/search_types.dart";
import "package:photos/models/selected_people.dart";
-import "package:photos/service_locator.dart"
- show hasGrantedMLConsent, isLocalGalleryMode;
+import "package:photos/service_locator.dart" show isLocalGalleryMode;
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/components/collection_share_badge.dart";
import "package:photos/ui/settings/ml/machine_learning_settings_page.dart";
-import "package:photos/ui/settings/ml/ml_consent_sheet.dart";
import "package:photos/ui/viewer/actions/select_all_status_icon.dart";
import "package:photos/ui/viewer/file/no_thumbnail_widget.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
@@ -111,11 +109,7 @@ class _PeopleSectionState extends State<PeopleSection> {
: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
- if (hasGrantedMLConsent) {
- routeToPage(context, const MachineLearningSettingsPage());
- } else {
- unawaited(showMLConsentSheet(context));
- }
+ routeToPage(context, const MachineLearningSettingsPage());
},
child: Padding(
padding: const EdgeInsets.only(