Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge remote-tracking branch 'origin/main' into albumstab

AmanRajSinghMouryaa47a47a7ecb2
diff --cc mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 73305e436f,0d84cec97c..e8c2f58a47
--- 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
@@@ -82,9 -84,11 +84,12 @@@ class GalleryAppBarWidget extends State
sliverBuilder: (_) => GalleryAppBarWidget._(
type,
title,
+ subtitle,
selectedFiles,
+ subtitle: subtitle,
deviceCollection: deviceCollection,
+ isDeviceFolderBackedUp: isDeviceFolderBackedUp,
+ onDisableDeviceFolderBackup: onDisableDeviceFolderBackup,
collection: collection,
files: files,
),
@@@ -126,9 -132,11 +133,12 @@@
const GalleryAppBarWidget._(
this.type,
this.title,
+ this.subtitle,
this.selectedFiles, {
+ this.subtitle,
this.deviceCollection,
+ this.isDeviceFolderBackedUp,
+ this.onDisableDeviceFolderBackup,
this.collection,
this.files,
});
@@@ -647,9 -655,9 +660,10 @@@ class _GalleryAppBarWidgetState extend
(!isArchived && galleryType.canHide()) ||
widget.collection != null ||
galleryType.canDelete() ||
+ galleryType == GalleryType.trash ||
galleryType == GalleryType.sharedCollection ||
(galleryType == GalleryType.localFolder && !_isICloudSharedAlbum) ||
+ _canDisableDeviceFolderBackup ||
(galleryType == GalleryType.sharedPublicCollection &&
(widget.collection?.isDownloadEnabledForPublicLink() ?? false));
}