π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove defaults on info page
vishnukvmdb6b5d11436eb
diff --git a/mobile/apps/locker/lib/ui/pages/base_info_page.dart b/mobile/apps/locker/lib/ui/pages/base_info_page.dartindex bda92be201..b6117e0e82 100644--- a/mobile/apps/locker/lib/ui/pages/base_info_page.dart+++ b/mobile/apps/locker/lib/ui/pages/base_info_page.dart@@ -85,7 +85,8 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>double get collectionSpacing => 24;@protected- bool get isSaveEnabled => !_isLoading;+ bool get isSaveEnabled =>+ !_isLoading && _selectedCollectionIds.isNotEmpty;@protectedFuture<bool> onEditModeBackPressed() async {@@ -193,9 +194,6 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>.where((c) => c.type != CollectionType.uncategorized).map((c) => c.id).toSet();- } else if (initialSelection.isEmpty && filteredCollections.isNotEmpty) {- final defaultCollection = _pickDefaultCollection(filteredCollections);- initialSelection = {defaultCollection.id};}if (!mounted) {@@ -211,25 +209,6 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>}}- Collection _pickDefaultCollection(List<Collection> collections) {- assert(collections.isNotEmpty, 'Collections list cannot be empty');-- final infoCollectionName = context.l10n.informationCollectionName;- for (final collection in collections) {- if ((collection.name ?? '') == infoCollectionName) {- return collection;- }- }-- for (final collection in collections) {- if (collection.type != CollectionType.favorites) {- return collection;- }- }-- return collections.first;- }-void _onToggleCollection(int collectionId) {setState(() {if (_selectedCollectionIds.contains(collectionId)) {