Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Remove redundant trash overflow guards

Priyanshu Dangare05a899952be9
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index b3b026b98b..5690dcce85 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -572,10 +572,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
return actions;
}
- if (galleryType == GalleryType.trash) {
- return actions;
- }
-
actions.add(
galleryAppBarPopupMenuAction<AlbumPopupAction>(
tooltip: strings.more,
@@ -705,7 +701,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
(!isArchived && galleryType.canHide()) ||
widget.collection != null ||
galleryType.canDelete() ||
- galleryType == GalleryType.trash ||
galleryType == GalleryType.sharedCollection ||
(galleryType == GalleryType.localFolder && !_isICloudSharedAlbum) ||
_canDisableDeviceFolderBackup ||