Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Fix media management hint flow

Priyanshu Dangare068bbab9f1fc
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 6af764aec0..a4ae0ad1c7 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -1097,9 +1097,6 @@ class _FileSelectionActionsWidgetState
onTap: () async {
try {
await deleteFilesOnDeviceOnly(context, filesToDelete);
- if (mounted) {
- await showMediaManagementHintSheet(context);
- }
} catch (e) {
if (mounted) {
await showGenericErrorDialog(context: context, error: e);
@@ -1123,6 +1120,9 @@ class _FileSelectionActionsWidgetState
if (actionResult?.action == ButtonAction.first) {
widget.selectedFiles.clearAll();
+ if (mounted) {
+ await showMediaManagementHintSheet(context);
+ }
}
}