💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove swipe to select setting and enable feature for all devices
ashilknbc3ba414a8c8
diff --git a/mobile/apps/photos/lib/events/swipe_to_select_enabled_event.dart b/mobile/apps/photos/lib/events/swipe_to_select_enabled_event.dartdeleted file mode 100644index f30f296e27..0000000000--- a/mobile/apps/photos/lib/events/swipe_to_select_enabled_event.dart+++ /dev/null@@ -1,7 +0,0 @@-import "package:photos/events/event.dart";--class SwipeToSelectEnabledEvent extends Event {- final bool isEnabled;-- SwipeToSelectEnabledEvent(this.isEnabled);-}diff --git a/mobile/apps/photos/lib/l10n/intl_be.arb b/mobile/apps/photos/lib/l10n/intl_be.arbindex b719ba112c..880fbad7c1 100644--- a/mobile/apps/photos/lib/l10n/intl_be.arb+++ b/mobile/apps/photos/lib/l10n/intl_be.arb@@ -1624,7 +1624,6 @@"legacyInvite": "{email} запрасіў вас стаць давераным кантактам","authToManageLegacy": "Прайдзіце аўтэнтыфікацыю, каб кіраваць сваімі даверанымі кантактамі","hideSharedItemsFromHomeGallery": "Схаваць абагуленыя элементы з асноўнай галерэі",- "swipeToSelect": "Правядзіце пальцам, каб выбраць","gallery": "Галерэя","joinAlbum": "Далучыцца да альбома","joinAlbumSubtext": "каб праглядаць і дадаваць свае фатаграфіі",diff --git a/mobile/apps/photos/lib/l10n/intl_ca.arb b/mobile/apps/photos/lib/l10n/intl_ca.arbindex 8818bf16f5..46db7e44fa 100644--- a/mobile/apps/photos/lib/l10n/intl_ca.arb+++ b/mobile/apps/photos/lib/l10n/intl_ca.arb@@ -1679,7 +1679,6 @@"legacyInvite": "{email} t'ha convidat a ser un contacte de confiança","authToManageLegacy": "Si us plau, autentica't per gestionar els teus contactes de confiança","hideSharedItemsFromHomeGallery": "Amaga elements compartits de la galeria d'inici",- "swipeToSelect": "Llisca per seleccionar","gallery": "Galeria","joinAlbum": "Uneix-te a l'àlbum","joinAlbumSubtext": "per veure i afegir les teves fotos",diff --git a/mobile/apps/photos/lib/l10n/intl_cs.arb b/mobile/apps/photos/lib/l10n/intl_cs.arbindex d57f5290ec..600da1692e 100644--- a/mobile/apps/photos/lib/l10n/intl_cs.arb+++ b/mobile/apps/photos/lib/l10n/intl_cs.arb@@ -1679,7 +1679,6 @@"legacyInvite": "{email} Vás pozval, abyste se stali důvěryhodným kontaktem","authToManageLegacy": "Pro správu důvěryhodných kontaktů se prosím ověřte","hideSharedItemsFromHomeGallery": "Skrýt sdílené položky z úvodní galerie",- "swipeToSelect": "Přejetím prstem vyberte","gallery": "Galerie","joinAlbum": "Připojit se k albu","joinAlbumSubtext": "pro prohlížení a přidání Vašich fotografií",diff --git a/mobile/apps/photos/lib/l10n/intl_de.arb b/mobile/apps/photos/lib/l10n/intl_de.arbindex 2f1cc81286..894cc24590 100644--- a/mobile/apps/photos/lib/l10n/intl_de.arb+++ b/mobile/apps/photos/lib/l10n/intl_de.arb@@ -1709,7 +1709,6 @@"legacyInvite": "{email} hat dich eingeladen, ein vertrauenswürdiger Kontakt zu werden","authToManageLegacy": "Bitte authentifiziere dich, um deine vertrauenswürdigen Kontakte zu verwalten","hideSharedItemsFromHomeGallery": "Geteilte Elemente in der Home-Galerie ausblenden",- "swipeToSelect": "Zum Auswählen wischen","gallery": "Galerie","joinAlbum": "Album beitreten","joinAlbumSubtext": "um deine Fotos anzuzeigen und hinzuzufügen",diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex fd50be47df..d5eece7df9 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -1728,7 +1728,6 @@"legacyInvite": "{email} has invited you to be a trusted contact","authToManageLegacy": "Please authenticate to manage your trusted contacts","hideSharedItemsFromHomeGallery": "Hide shared items from home gallery",- "swipeToSelect": "Swipe to select","gallery": "Gallery","joinAlbum": "Join album","joinAlbumSubtext": "to view and add your photos",diff --git a/mobile/apps/photos/lib/l10n/intl_es.arb b/mobile/apps/photos/lib/l10n/intl_es.arbindex bb1365227d..ab3ee1d3ef 100644--- a/mobile/apps/photos/lib/l10n/intl_es.arb+++ b/mobile/apps/photos/lib/l10n/intl_es.arb@@ -1696,7 +1696,6 @@"legacyInvite": "{email} te ha invitado a ser un contacto de confianza","authToManageLegacy": "Por favor, autentícate para administrar tus contactos de confianza","hideSharedItemsFromHomeGallery": "Ocultar elementos compartidos de la galería de inicio",- "swipeToSelect": "Desliza para seleccionar","gallery": "Galería","joinAlbum": "Unir álbum","joinAlbumSubtext": "para ver y añadir tus fotos",diff --git a/mobile/apps/photos/lib/l10n/intl_fr.arb b/mobile/apps/photos/lib/l10n/intl_fr.arbindex 6e59401bd2..6c1962cb3d 100644--- a/mobile/apps/photos/lib/l10n/intl_fr.arb+++ b/mobile/apps/photos/lib/l10n/intl_fr.arb@@ -1709,7 +1709,6 @@"legacyInvite": "{email} vous a invité à être un contact de confiance","authToManageLegacy": "Veuillez vous authentifier pour gérer vos contacts de confiance","hideSharedItemsFromHomeGallery": "Masquer les éléments partagés avec vous dans la galerie",- "swipeToSelect": "Balayer pour sélectionner","gallery": "Galerie","joinAlbum": "Rejoindre l'album","joinAlbumSubtext": "pour afficher et ajouter vos photos",diff --git a/mobile/apps/photos/lib/l10n/intl_uk.arb b/mobile/apps/photos/lib/l10n/intl_uk.arbindex 5348da12e0..fb420c8bbb 100644--- a/mobile/apps/photos/lib/l10n/intl_uk.arb+++ b/mobile/apps/photos/lib/l10n/intl_uk.arb@@ -1537,7 +1537,6 @@},"legacyInvite": "{email} запросив вас стати довіреною особою","authToManageLegacy": "Авторизуйтесь, щоби керувати довіреними контактами",- "swipeToSelect": "Проведіть пальцем, щоб обрати","gallery": "Галерея","joinAlbum": "Приєднатися до альбому","join": "Приєднатися",diff --git a/mobile/apps/photos/lib/l10n/intl_vi.arb b/mobile/apps/photos/lib/l10n/intl_vi.arbindex 0f827c3dcd..c3c21a8cb7 100644--- a/mobile/apps/photos/lib/l10n/intl_vi.arb+++ b/mobile/apps/photos/lib/l10n/intl_vi.arb@@ -1709,7 +1709,6 @@"legacyInvite": "{email} đã mời bạn trở thành một liên hệ tin cậy","authToManageLegacy": "Vui lòng xác thực để quản lý các liên hệ tin cậy","hideSharedItemsFromHomeGallery": "Ẩn các mục được chia sẻ khỏi thư viện chính",- "swipeToSelect": "Quẹt để chọn","gallery": "Thư viện","joinAlbum": "Tham gia album","joinAlbumSubtext": "để xem và thêm ảnh của bạn",diff --git a/mobile/apps/photos/lib/l10n/intl_zh.arb b/mobile/apps/photos/lib/l10n/intl_zh.arbindex a1273c551b..7fdde05499 100644--- a/mobile/apps/photos/lib/l10n/intl_zh.arb+++ b/mobile/apps/photos/lib/l10n/intl_zh.arb@@ -1678,7 +1678,6 @@"legacyInvite": "{email} 已邀请您成为可信联系人","authToManageLegacy": "请验证身份以管理您的可信联系人","hideSharedItemsFromHomeGallery": "隐藏主页图库中的共享项目",- "swipeToSelect": "滑动以选择","gallery": "图库","joinAlbum": "加入相册","joinAlbumSubtext": "来查看和添加您的照片",diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dartindex 1e353e2292..6f49de23e3 100644--- a/mobile/apps/photos/lib/main.dart+++ b/mobile/apps/photos/lib/main.dart@@ -331,7 +331,6 @@ Future<void> _init(bool isBackground, {String via = ''}) async {}EnteWakeLockService.instance.init(preferences);wrappedService.scheduleInitialLoad();- await localSettings.initSwipeToSelectDefault();logLocalSettings();initComplete = true;_stopHearBeat = true;@@ -352,7 +351,6 @@ void logLocalSettings() {'Gallery grid size': localSettings.getPhotoGridSize(),'Video streaming enabled':VideoPreviewService.instance.isVideoStreamingEnabled,- 'Swipe to select enabled': localSettings.isSwipeToSelectEnabled,};final formattedSettings =diff --git a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dartindex 10e93d2007..562bc98615 100644--- a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart@@ -369,9 +369,8 @@ class GalleryGroups {// Save original last file before adding dummies to the endfinal lastFile = groupFiles.last;- // Only add dummy files if swipe-to-select feature is enabled// Dummy files are used for gesture tracking in swipe-to-select- if (localSettings.isSwipeToSelectEnabled && !limitSelectionToOne) {+ if (!limitSelectionToOne) {// Add dummy files to fill the last row if neededfinal incompleteRowCount = groupFiles.length % crossAxisCount;if (incompleteRowCount != 0) {@@ -406,7 +405,7 @@ class GalleryGroups {minCreationTime: minCreationTime);- if (localSettings.isSwipeToSelectEnabled && !limitSelectionToOne) {+ if (!limitSelectionToOne) {_allFilesWithDummies.addAll(groupFiles);}diff --git a/mobile/apps/photos/lib/services/rituals/rituals_service.dart b/mobile/apps/photos/lib/services/rituals/rituals_service.dartindex 44852664c1..a4af191747 100644--- a/mobile/apps/photos/lib/services/rituals/rituals_service.dart+++ b/mobile/apps/photos/lib/services/rituals/rituals_service.dart@@ -493,8 +493,8 @@ class RitualsService {final now = DateTime.now();final today = DateTime(now.year, now.month, now.day);final todayIndex = today.weekday % 7;- final shouldCheckToday = ritual.daysOfWeek.length == 7 &&- ritual.daysOfWeek[todayIndex];+ final shouldCheckToday =+ ritual.daysOfWeek.length == 7 && ritual.daysOfWeek[todayIndex];final albumId = ritual.albumId;final skipToday = shouldCheckToday && albumId != null && albumId > 0? await _hasAddedPhotoToday(albumId)@@ -567,8 +567,7 @@ class RitualsService {if (albumId == null || albumId <= 0) continue;if (!updatedCollectionIds.contains(albumId)) continue;if (!ritual.remindersEnabled) continue;- if (ritual.daysOfWeek.length != 7 ||- !ritual.daysOfWeek[todayIndex]) {+ if (ritual.daysOfWeek.length != 7 || !ritual.daysOfWeek[todayIndex]) {continue;}if (_notificationRescheduleInFlight.contains(ritual.id)) {diff --git a/mobile/apps/photos/lib/states/detail_page_state.dart b/mobile/apps/photos/lib/states/detail_page_state.dartindex 8ac8c2ea47..d529a4d520 100644--- a/mobile/apps/photos/lib/states/detail_page_state.dart+++ b/mobile/apps/photos/lib/states/detail_page_state.dart@@ -14,6 +14,7 @@ typedef FullScreenRequestCallback = void Function(class InheritedDetailPageState extends InheritedWidget {final ValueNotifier<bool> enableFullScreenNotifier;final ValueNotifier<bool> isInSharedCollectionNotifier;+/// Holds the generatedID of the file currently showing thumbnail fallback./// Only the file with matching ID should display the fallback indicator.final ValueNotifier<int?> showingThumbnailFallbackNotifier;diff --git a/mobile/apps/photos/lib/ui/rituals/ritual_camera_page.dart b/mobile/apps/photos/lib/ui/rituals/ritual_camera_page.dartindex f4ca6c96f0..1c6f55f509 100644--- a/mobile/apps/photos/lib/ui/rituals/ritual_camera_page.dart+++ b/mobile/apps/photos/lib/ui/rituals/ritual_camera_page.dart@@ -480,8 +480,7 @@ class _RitualCameraPageState extends State<RitualCameraPage>.whenComplete(_resumePreview);return;}- final List<_RitualCapture> pending =- List<_RitualCapture>.from(_captures);+ final List<_RitualCapture> pending = List<_RitualCapture>.from(_captures);bool saved = false;setState(() {_saving = true;@@ -1130,9 +1129,8 @@ class _RitualCameraPageState extends State<RitualCameraPage>);final bool shouldMirrorPreview =_activeCamera?.lensDirection == CameraLensDirection.front;- final Offset cameraPoint = shouldMirrorPreview- ? Offset(1.0 - clamped.dx, clamped.dy)- : clamped;+ final Offset cameraPoint =+ shouldMirrorPreview ? Offset(1.0 - clamped.dx, clamped.dy) : clamped;controller.setExposurePoint(cameraPoint);controller.setFocusPoint(cameraPoint);_showFocusIndicator(clamped);diff --git a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dartindex 362aa69652..4fda8cbb18 100644--- a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart+++ b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart@@ -1,7 +1,6 @@import "package:flutter/material.dart";import "package:photos/core/event_bus.dart";import "package:photos/events/hide_shared_items_from_home_gallery_event.dart";-import "package:photos/events/swipe_to_select_enabled_event.dart";import "package:photos/generated/l10n.dart";import "package:photos/service_locator.dart";import "package:photos/theme/ente_theme.dart";@@ -161,34 +160,6 @@ class _GallerySettingsScreenState extends State<GallerySettingsScreen> {},),),- const SizedBox(- height: 24,- ),- widget.fromGalleryLayoutSettingsCTA- ? const SizedBox.shrink()- : MenuItemWidget(- captionedTextWidget: CaptionedTextWidget(- title:- AppLocalizations.of(context).swipeToSelect,- ),- menuItemColor: colorScheme.fillFaint,- singleBorderRadius: 8,- alignCaptionedTextToLeft: true,- trailingWidget: ToggleSwitchWidget(- value: () =>- localSettings.isSwipeToSelectEnabled,- onChanged: () async {- final prevSetting =- localSettings.isSwipeToSelectEnabled;- await localSettings- .setSwipeToSelectEnabled(!prevSetting);-- Bus.instance.fire(- SwipeToSelectEnabledEvent(!prevSetting),- );- },- ),- ),],),);diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dartindex e409238d25..3e9e77895c 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart@@ -1,7 +1,6 @@import "package:flutter/material.dart";import "package:photos/models/file/dummy_file.dart";import "package:photos/models/selected_files.dart";-import "package:photos/service_locator.dart";import "package:photos/ui/viewer/gallery/component/swipe_selectable_file_widget.dart";/// A widget that displays a dummy placeholder in the gallery grid.@@ -20,12 +19,10 @@ class DummyFileWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {- final shouldEnableSwipeSelection =- localSettings.isSwipeToSelectEnabled && !limitSelectionToOne;-const Widget dummyContent = SizedBox.expand();- if (shouldEnableSwipeSelection) {+ // Wrap with swipe selection when not in single selection mode+ if (!limitSelectionToOne) {return SwipeSelectableFileWidget(file: file,selectedFiles: selectedFiles,diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dartindex a7d5dc453e..747bb41ca8 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart@@ -6,7 +6,6 @@ import "package:photos/core/constants.dart";import 'package:photos/models/file/file.dart';import "package:photos/models/gallery_type.dart";import "package:photos/models/selected_files.dart";-import "package:photos/service_locator.dart";import "package:photos/services/app_lifecycle_service.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/common/touch_cross_detector.dart";@@ -62,14 +61,10 @@ class _GalleryFileWidgetState extends State<GalleryFileWidget> {@overrideWidget build(BuildContext context) {- // Check if swipe selection should be enabled- final shouldEnableSwipeSelection =- localSettings.isSwipeToSelectEnabled && !widget.limitSelectionToOne;-final Widget fileContent = _buildFileContent(context);- // Wrap with swipe selection if enabled- if (shouldEnableSwipeSelection) {+ // Wrap with swipe selection when not in single selection mode+ if (!widget.limitSelectionToOne) {return SwipeSelectableFileWidget(file: widget.file,selectedFiles: widget.selectedFiles,diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dartindex 0aa4ae1013..853e5b6b72 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart@@ -18,7 +18,7 @@ import 'package:photos/models/file_load_result.dart';import "package:photos/models/gallery/gallery_groups.dart";import "package:photos/models/gallery_type.dart";import 'package:photos/models/selected_files.dart';-import "package:photos/service_locator.dart";+import "package:photos/service_locator.dart" show localSettings;import "package:photos/theme/ente_theme.dart";import 'package:photos/ui/common/loading_widget.dart';import "package:photos/ui/viewer/actions/file_selection_overlay_bar.dart";@@ -318,8 +318,7 @@ class GalleryState extends State<Gallery> {widget.selectedFiles?.addListener(_selectedFilesListener);- if (localSettings.isSwipeToSelectEnabled &&- widget.galleryType == GalleryType.homepage) {+ if (widget.galleryType == GalleryType.homepage) {_swipeActiveNotifier.addListener(() {Bus.instance.fire(HomepageSwipeToSelectInProgressEvent(@@ -507,9 +506,7 @@ class GalleryState extends State<Gallery> {}void _updateSwipeHelper() {- if (localSettings.isSwipeToSelectEnabled &&- widget.selectedFiles != null &&- _allFilesWithDummies.isNotEmpty) {+ if (widget.selectedFiles != null && _allFilesWithDummies.isNotEmpty) {// Dispose existing helper if present_swipeHelper?.dispose();// Use allFilesWithDummies to match the rendered grid structure.@@ -627,8 +624,7 @@ class GalleryState extends State<Gallery> {}final widthAvailable = MediaQuery.sizeOf(context).width;- final shouldEnableSwipeSelection = localSettings.isSwipeToSelectEnabled &&- widget.limitSelectionToOne == false;+ final shouldEnableSwipeSelection = widget.limitSelectionToOne == false;if (groupHeaderExtent == null) {final photoGridSize = localSettings.getPhotoGridSize();diff --git a/mobile/apps/photos/lib/utils/device_info.dart b/mobile/apps/photos/lib/utils/device_info.dartindex daa240a4e2..f84e415587 100644--- a/mobile/apps/photos/lib/utils/device_info.dart+++ b/mobile/apps/photos/lib/utils/device_info.dart@@ -31,43 +31,3 @@ Future<String?> getDeviceInfo() async {return null;}}--Future<bool> isSamsungSSeries() async {- try {- if (!Platform.isAndroid) return false;-- final AndroidDeviceInfo androidInfo = await deviceInfoPlugin.androidInfo;- final model = androidInfo.model;-- // Explicit list of Samsung S-series model prefixes (2018+)- const sSeriesPrefixes = [- // Galaxy S9 (2018)- 'SM-G960', 'SM-G965',-- // Galaxy S10 (2019)- 'SM-G970', 'SM-G973', 'SM-G975', 'SM-G977',-- // Galaxy S20 (2020)- 'SM-G780', 'SM-G781', 'SM-G980', 'SM-G981',- 'SM-G985', 'SM-G986', 'SM-G988',-- // Galaxy S21 (2021)- 'SM-G990', 'SM-G991', 'SM-G996', 'SM-G998',-- // Galaxy S22 (2022)- 'SM-S901', 'SM-S906', 'SM-S908',-- // Galaxy S23 (2023)- 'SM-S711', 'SM-S911', 'SM-S916', 'SM-S918',-- // Galaxy S24 (2024)- 'SM-S721', 'SM-S921', 'SM-S926', 'SM-S928',- ];-- // Check if device model starts with any of the S-series prefixes- return sSeriesPrefixes.any((prefix) => model.startsWith(prefix));- } catch (e) {- Logger("device_info").warning("isSamsungSSeries check failed", e);- return false;- }-}diff --git a/mobile/apps/photos/lib/utils/local_settings.dart b/mobile/apps/photos/lib/utils/local_settings.dartindex 1114d5de76..6069208731 100644--- a/mobile/apps/photos/lib/utils/local_settings.dart+++ b/mobile/apps/photos/lib/utils/local_settings.dart@@ -2,7 +2,6 @@ import 'package:flutter/foundation.dart';import 'package:photos/core/constants.dart';import 'package:photos/ui/viewer/gallery/component/group/type.dart';-import 'package:photos/utils/device_info.dart';import "package:photos/utils/ram_check_util.dart";import 'package:shared_preferences/shared_preferences.dart';@@ -42,7 +41,6 @@ class LocalSettings {"has_configured_links_in_app_permission";static const _hideSharedItemsFromHomeGalleryTag ="hide_shared_items_from_home_gallery";- static const _kSwipeToSelectEnabled = "ls.swipe_to_select_enabled";static const kCollectionViewType = "collection_view_type";static const kCollectionSortDirection = "collection_sort_direction";static const kShowLocalIDOverThumbnails = "show_local_id_over_thumbnails";@@ -248,30 +246,6 @@ class LocalSettings {bool get hideSharedItemsFromHomeGallery =>_prefs.getBool(_hideSharedItemsFromHomeGalleryTag) ?? false;- Future<void> setSwipeToSelectEnabled(bool value) async {- await _prefs.setBool(_kSwipeToSelectEnabled, value);- }-- /// Initialize swipe-to-select default based on device type.- /// Sets default to disabled for Samsung S-series devices (2018+) due to- /// reported gesture conflicts. Only sets default if user hasn't explicitly- /// configured this setting.- Future<void> initSwipeToSelectDefault() async {- // Only set default if user hasn't explicitly configured this setting- if (_prefs.containsKey(_kSwipeToSelectEnabled)) {- return;- }-- // Check if device is Samsung S-series- final isSamsungS = await isSamsungSSeries();-- // Set default: disabled for Samsung S-series, enabled for all others- await _prefs.setBool(_kSwipeToSelectEnabled, !isSamsungS);- }-- bool get isSwipeToSelectEnabled =>- _prefs.getBool(_kSwipeToSelectEnabled) ?? true;-bool get showLocalIDOverThumbnails =>_prefs.getBool(kShowLocalIDOverThumbnails) ?? false;