Skip to content

Commit 1d4c178

Browse files
committed
fix lint
1 parent 1c45a71 commit 1d4c178

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

shared/ui/component/src/commonMain/kotlin/dev/dimension/flare/ui/component/status/StatusMediaComponent.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)