fix(mobile): show controls by default on motion photos (#25638)
fix: show controls by default on motion photospull/25648/head
parent
e50579eefc
commit
84c3980844
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue