Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): playing a live photo causes the gallery to redraw the wrong image (#15027)

Tom Graham5111ceffac7a
diff --git a/mobile/lib/pages/common/gallery_viewer.page.dart b/mobile/lib/pages/common/gallery_viewer.page.dart
index 43ff43e573..7e47c1d087 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) {