Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Format trash page changes

Priyanshu Dangare4c2b0251b332
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
index 52d74e432d..1901560473 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
@@ -289,9 +289,7 @@ class FileAppBarState extends State<FileAppBar> {
);
}
- if (!isFileUploaded &&
- !widget.file.isTrashFile &&
- !isLocalGalleryMode) {
+ if (!isFileUploaded && !widget.file.isTrashFile && !isLocalGalleryMode) {
_actions.add(
UploadIconWidget(file: widget.file, key: ValueKey(widget.file.tag)),
);
diff --git a/mobile/apps/photos/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dart
index 2b4298e8ce..1b517b9d6b 100644
--- a/mobile/apps/photos/lib/utils/delete_file_util.dart
+++ b/mobile/apps/photos/lib/utils/delete_file_util.dart
@@ -1388,9 +1388,7 @@ Future<void> permanentlyDeleteFromSystemTrash(
}
Future<void> _deleteFromSystemTrash(SelectedFiles selectedFiles) async {
- final fileIDs = selectedFiles.files
- .map((f) => f.localID!)
- .toList();
+ final fileIDs = selectedFiles.files.map((f) => f.localID!).toList();
final deletedIDs = <String>{};
try {
for (final batch in fileIDs.chunks(batchSize)) {