Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Change order for guest view

Neeraj Gupta9369f21db268
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 1afd17ba8a..e7cf0fc1ea 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
@@ -551,6 +551,21 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
? Icons.visibility_outlined
: Icons.visibility_off_outlined,
),
+ // Gallery Guest View option - Internal user only
+ if (flagService.albumGuestView && widget.collection != null)
+ EntePopupMenuItem(
+ AppLocalizations.of(context).guestView + " (i)",
+ value: AlbumPopupAction.galleryGuestView,
+ iconWidget: SvgPicture.asset(
+ "assets/icons/guest_view_icon.svg",
+ width: 20,
+ height: 20,
+ colorFilter: ColorFilter.mode(
+ getEnteColorScheme(context).textBase,
+ BlendMode.srcIn,
+ ),
+ ),
+ ),
if (widget.collection != null)
EntePopupMenuItem(
value: AlbumPopupAction.playOnTv,
@@ -616,21 +631,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
? Icons.download
: Icons.cloud_download_outlined,
),
- // Gallery Guest View option - Internal user only
- if (flagService.albumGuestView && widget.collection != null)
- EntePopupMenuItem(
- AppLocalizations.of(context).guestView + " (i)",
- value: AlbumPopupAction.galleryGuestView,
- iconWidget: SvgPicture.asset(
- "assets/icons/guest_view_icon.svg",
- width: 20,
- height: 20,
- colorFilter: ColorFilter.mode(
- getEnteColorScheme(context).textBase,
- BlendMode.srcIn,
- ),
- ),
- ),
];
if (items.isEmpty) {