fix(mobile): show controls by default on motion photos (#25638)

fix: show controls by default on motion photos
This commit is contained in:
Noel S 2026-01-28 11:46:29 -08:00 committed by GitHub
parent e50579eefc
commit 84c3980844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,9 @@ class AssetViewer extends ConsumerStatefulWidget {
if (asset.isVideo || asset.isMotionPhoto) {
ref.read(videoPlaybackValueProvider.notifier).reset();
ref.read(videoPlayerControlsProvider.notifier).pause();
// Hide controls by default for videos and motion photos
}
// Hide controls by default for videos
if (asset.isVideo) {
ref.read(assetViewerProvider.notifier).setControls(false);
}
}