File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
shared/ui/component/src/commonMain/kotlin/dev/dimension/flare/ui/component/status Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,16 @@ internal fun StatusMediaComponent(
7878 data.forEach { media ->
7979 Box {
8080 CompositionLocalProvider (
81- LocalComponentAppearance provides appearanceSettings
82- .copy(videoAutoplay = if (hideSensitive)
83- ComponentAppearance .VideoAutoplay .NEVER
84- else
85- appearanceSettings.videoAutoplay
86- ),
81+ LocalComponentAppearance provides
82+ appearanceSettings
83+ .copy(
84+ videoAutoplay =
85+ if (hideSensitive) {
86+ ComponentAppearance .VideoAutoplay .NEVER
87+ } else {
88+ appearanceSettings.videoAutoplay
89+ },
90+ ),
8791 ) {
8892 MediaItem (
8993 media = media,
@@ -254,7 +258,7 @@ public fun MediaItem(
254258 val shouldPlay =
255259 remember(appearanceSettings.videoAutoplay, wifiState) {
256260 appearanceSettings.videoAutoplay == ComponentAppearance .VideoAutoplay .ALWAYS ||
257- (appearanceSettings.videoAutoplay == ComponentAppearance .VideoAutoplay .WIFI && wifiState)
261+ (appearanceSettings.videoAutoplay == ComponentAppearance .VideoAutoplay .WIFI && wifiState)
258262 }
259263 if (shouldPlay) {
260264 PlatformVideoPlayer (
You can’t perform that action at this time.
0 commit comments