Skip to content

Commit

Permalink
fix(mobile): playing a live photo causes the gallery to redraw the wr…
Browse files Browse the repository at this point in the history
…ong image (immich-app#15027)

Fixed an issue where playing a motion video caused the gallery to re-render on the wrong image.

Co-authored-by: Tom graham <[email protected]>
  • Loading branch information
Tyris and tomgquest authored Jan 2, 2025
1 parent 4d6d553 commit 5111cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/lib/pages/common/gallery_viewer.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5111cef

Please sign in to comment.