Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit a61a51c

Browse files
committed
lint(lint): lint
1 parent fd4ad52 commit a61a51c

1 file changed

Lines changed: 45 additions & 42 deletions

File tree

app/src/main/java/live/mehiz/mpvkt/ui/player/controls/PlayerControls.kt

Lines changed: 45 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -219,27 +219,27 @@ fun PlayerControls(
219219
AnimatedVisibility(
220220
isBrightnessSliderShown,
221221
enter =
222-
if (!reduceMotion) {
223-
slideInHorizontally(playerControlsEnterAnimationSpec()) {
224-
if (swapVolumeAndBrightness) -it else it
225-
} +
226-
fadeIn(
227-
playerControlsEnterAnimationSpec(),
228-
)
229-
} else {
230-
fadeIn(playerControlsEnterAnimationSpec())
231-
},
222+
if (!reduceMotion) {
223+
slideInHorizontally(playerControlsEnterAnimationSpec()) {
224+
if (swapVolumeAndBrightness) -it else it
225+
} +
226+
fadeIn(
227+
playerControlsEnterAnimationSpec(),
228+
)
229+
} else {
230+
fadeIn(playerControlsEnterAnimationSpec())
231+
},
232232
exit =
233-
if (!reduceMotion) {
234-
slideOutHorizontally(playerControlsExitAnimationSpec()) {
235-
if (swapVolumeAndBrightness) -it else it
236-
} +
237-
fadeOut(
238-
playerControlsExitAnimationSpec(),
239-
)
240-
} else {
241-
fadeOut(playerControlsExitAnimationSpec())
242-
},
233+
if (!reduceMotion) {
234+
slideOutHorizontally(playerControlsExitAnimationSpec()) {
235+
if (swapVolumeAndBrightness) -it else it
236+
} +
237+
fadeOut(
238+
playerControlsExitAnimationSpec(),
239+
)
240+
} else {
241+
fadeOut(playerControlsExitAnimationSpec())
242+
},
243243
modifier = Modifier.constrainAs(brightnessSlider) {
244244
if (swapVolumeAndBrightness) {
245245
start.linkTo(parent.start, spacing.medium)
@@ -254,27 +254,27 @@ fun PlayerControls(
254254
AnimatedVisibility(
255255
isVolumeSliderShown,
256256
enter =
257-
if (!reduceMotion) {
258-
slideInHorizontally(playerControlsEnterAnimationSpec()) {
259-
if (swapVolumeAndBrightness) it else -it
260-
} +
261-
fadeIn(
262-
playerControlsEnterAnimationSpec(),
263-
)
264-
} else {
265-
fadeIn(playerControlsEnterAnimationSpec())
266-
},
257+
if (!reduceMotion) {
258+
slideInHorizontally(playerControlsEnterAnimationSpec()) {
259+
if (swapVolumeAndBrightness) it else -it
260+
} +
261+
fadeIn(
262+
playerControlsEnterAnimationSpec(),
263+
)
264+
} else {
265+
fadeIn(playerControlsEnterAnimationSpec())
266+
},
267267
exit =
268-
if (!reduceMotion) {
269-
slideOutHorizontally(playerControlsExitAnimationSpec()) {
270-
if (swapVolumeAndBrightness) it else -it
271-
} +
272-
fadeOut(
273-
playerControlsExitAnimationSpec(),
274-
)
275-
} else {
276-
fadeOut(playerControlsExitAnimationSpec())
277-
},
268+
if (!reduceMotion) {
269+
slideOutHorizontally(playerControlsExitAnimationSpec()) {
270+
if (swapVolumeAndBrightness) it else -it
271+
} +
272+
fadeOut(
273+
playerControlsExitAnimationSpec(),
274+
)
275+
} else {
276+
fadeOut(playerControlsExitAnimationSpec())
277+
},
278278
modifier = Modifier.constrainAs(volumeSlider) {
279279
if (swapVolumeAndBrightness) {
280280
end.linkTo(parent.end, spacing.medium)
@@ -582,8 +582,11 @@ fun PlayerControls(
582582
audioTracks = audioTracks,
583583
onAddAudio = viewModel::addAudio,
584584
onSelectAudio = {
585-
if (MPVLib.getPropertyInt("aid") == it.id) MPVLib.setPropertyBoolean("aid", false)
586-
else MPVLib.setPropertyInt("aid", it.id)
585+
if (MPVLib.getPropertyInt("aid") == it.id) {
586+
MPVLib.setPropertyBoolean("aid", false)
587+
} else {
588+
MPVLib.setPropertyInt("aid", it.id)
589+
}
587590
},
588591
chapter = chapters.getOrNull(currentChapter ?: 0),
589592
chapters = chapters,

0 commit comments

Comments
 (0)