From 5111ceffac7ab3e16b550364cedb631e20091e6f Mon Sep 17 00:00:00 2001 From: Tom Graham Date: Thu, 2 Jan 2025 15:46:06 +1100 Subject: [PATCH] fix(mobile): playing a live photo causes the gallery to redraw the wrong image (#15027) Fixed an issue where playing a motion video caused the gallery to re-render on the wrong image. Co-authored-by: Tom graham --- mobile/lib/pages/common/gallery_viewer.page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/pages/common/gallery_viewer.page.dart b/mobile/lib/pages/common/gallery_viewer.page.dart index 43ff43e573d..7e47c1d087e 100644 --- a/mobile/lib/pages/common/gallery_viewer.page.dart +++ b/mobile/lib/pages/common/gallery_viewer.page.dart @@ -286,7 +286,7 @@ class GalleryViewerPage extends HookConsumerWidget { body: Stack( children: [ PhotoViewGallery.builder( - key: ValueKey(isPlayingMotionVideo), + key: const ValueKey('gallery'), scaleStateChangedCallback: (state) { final asset = ref.read(currentAssetProvider); if (asset == null) {