π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Gate save till input is there
laurenspriem9e2f03b012cb
diff --git a/mobile/apps/photos/lib/ui/activity/activity_screen.dart b/mobile/apps/photos/lib/ui/activity/activity_screen.dartindex 500d51555e..ae19088f7a 100644--- a/mobile/apps/photos/lib/ui/activity/activity_screen.dart+++ b/mobile/apps/photos/lib/ui/activity/activity_screen.dart@@ -7,7 +7,6 @@ import "package:photos/services/collections_service.dart";import "package:photos/theme/colors.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/collections/album/column_item.dart";-import "package:photos/ui/notification/toast.dart";import "package:photos/ui/viewer/file/thumbnail_widget.dart";class ActivityScreen extends StatelessWidget {@@ -586,6 +585,8 @@ Future<void> _showRitualEditor(BuildContext context, {Ritual? ritual}) async {final textTheme = getEnteTextTheme(context);return StatefulBuilder(builder: (context, setState) {+ final bool canSave =+ controller.text.trim().isNotEmpty && selectedAlbumId != null;return SafeArea(child: Padding(padding: EdgeInsets.only(@@ -685,6 +686,7 @@ Future<void> _showRitualEditor(BuildContext context, {Ritual? ritual}) async {child: TextFormField(controller: controller,autofocus: true,+ onChanged: (_) => setState(() {}),decoration: InputDecoration(hintText: "Enter your ritual",filled: true,@@ -826,11 +828,7 @@ Future<void> _showRitualEditor(BuildContext context, {Ritual? ritual}) async {),),onPressed: () async {- if (!formKey.currentState!.validate()) return;- if (selectedAlbumId == null) {- showToast(context, "Please select an album");- return;- }+ if (!canSave) return;final updated = (ritual ??activityService.createEmptyRitual()).copyWith(