immich/mobile/lib
okxint 5165cf1d2f
fix(mobile): force AssetViewerPage recreation on repeated view intents (#29235)
* fix(mobile): force AssetViewerPage recreation on repeated view intents

When View in Immich is triggered a second time while the viewer is
already open, auto_route's replaceAll reuses the existing route (same
type, null key) and Flutter keeps the old ConsumerState alive. The
PageController and preloader inside _AssetViewerState are late final,
so they never reset — the viewer stays frozen on the previous asset.

Passing UniqueKey() to AssetViewerRoute ensures each view intent
creates a fresh widget element, so initState runs, the PageController
is initialised from scratch, and the new TimelineService from the
updated ProviderScope override is picked up correctly.

Fixes #29230

* clean up

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2026-06-23 17:43:56 +00:00
..
constants chore: basque was missing on mobile (#29284) 2026-06-23 08:57:05 -04:00
domain chore: do not optimize on cleanup (#29118) 2026-06-16 12:42:12 -04:00
entities refactor: yeet old timeline (#27666) 2026-04-15 23:00:27 +05:30
extensions fix: normalize diacritics in person name search in Web & Mobile (#28887) 2026-06-10 12:05:07 +02:00
infrastructure fix(mobile): show memories with no showAt/hideAt in the timeline lane (#29158) 2026-06-16 18:46:52 +00:00
interfaces refactor(mobile): interfaces refactor (#19415) 2025-06-23 11:27:44 -05:00
mixins chore: flutter 3.29.1 (#16730) 2025-03-10 21:46:36 -05:00
models refactor!: disallow star rating < 1 (#27896) 2026-06-04 17:06:28 +00:00
pages fix(mobile): endless spinner on album selection when device has no albums (#28994) 2026-06-18 21:38:15 +05:30
platform feat: show notification and battery optimization warning (#26610) 2026-06-04 12:24:39 +00:00
presentation feat: mobile actions (#29280) 2026-06-23 16:50:57 +00:00
providers fix(mobile): force AssetViewerPage recreation on repeated view intents (#29235) 2026-06-23 17:43:56 +00:00
repositories fix: video thumbnail quality sharing (#29104) 2026-06-16 09:13:31 -05:00
routing refactor: partner-page (#28783) 2026-06-04 09:05:45 -04:00
services fix(mobile): show like and comment options on album photo deep links (#29020) 2026-06-12 14:55:26 -05:00
theme fix(mobile): mismatch between system and app color when using low-chroma system color scheme (#27282) 2026-03-27 09:21:43 -05:00
utils feat: mobile actions (#29280) 2026-06-23 16:50:57 +00:00
widgets refactor: use SemVer classes for version compatability message (#29056) 2026-06-22 11:28:56 -04:00
main.dart feat: mobile-ui snackbar (#29260) 2026-06-22 16:22:26 -04:00
wm_executor.dart fix(mobile): proper background task cleanup (#28694) 2026-06-03 08:16:19 -04:00