Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Avoid building fileSelection when no file is selected

Neeraj Guptae6e9948fd88f
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 9485326abb..a8aac620fa 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -114,6 +114,9 @@ class _FileSelectionActionsWidgetState
@override
Widget build(BuildContext context) {
+ if (widget.selectedFiles.files.isEmpty) {
+ return const SizedBox();
+ }
final ownedFilesCount = split.ownedByCurrentUser.length;
final ownedAndPendingUploadFilesCount =
ownedFilesCount + split.pendingUploads.length;