From 08e09af5b3bd317bfd6358b9d5c34abc82ef42f0 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sat, 11 Jan 2025 19:16:59 -0700 Subject: [PATCH] all: reformat --- .../auxio/playback/service/ExoPlaybackStateHolder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/playback/service/ExoPlaybackStateHolder.kt b/app/src/main/java/org/oxycblt/auxio/playback/service/ExoPlaybackStateHolder.kt index e3665dfce..c685a5065 100644 --- a/app/src/main/java/org/oxycblt/auxio/playback/service/ExoPlaybackStateHolder.kt +++ b/app/src/main/java/org/oxycblt/auxio/playback/service/ExoPlaybackStateHolder.kt @@ -35,6 +35,7 @@ import androidx.media3.exoplayer.mediacodec.MediaCodecSelector import androidx.media3.exoplayer.source.MediaSource import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject +import kotlin.math.abs import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job @@ -45,7 +46,6 @@ import kotlinx.coroutines.yield import org.oxycblt.auxio.image.ImageSettings import org.oxycblt.auxio.music.MusicRepository import org.oxycblt.auxio.playback.PlaybackSettings -import org.oxycblt.auxio.playback.msToSecs import org.oxycblt.auxio.playback.persist.PersistenceRepository import org.oxycblt.auxio.playback.replaygain.ReplayGainAudioProcessor import org.oxycblt.auxio.playback.state.DeferredPlayback @@ -59,7 +59,6 @@ import org.oxycblt.auxio.playback.state.ShuffleMode import org.oxycblt.auxio.playback.state.StateAck import org.oxycblt.musikr.MusicParent import org.oxycblt.musikr.Song -import kotlin.math.abs import timber.log.Timber as L class ExoPlaybackStateHolder( @@ -397,7 +396,8 @@ class ExoPlaybackStateHolder( // in the case of a "tight restore" (i.e music was reloaded). // In the case that this is a false positive, it's not very percievable (at least compared // to skipping when updating the library). - // TODO: Introduce a better state management system rather than do something finicky like this. + // TODO: Introduce a better state management system rather than do something finicky like + // this. if (shouldSeek || abs(player.currentPosition - positionMs) > 1000L) { player.seekTo(positionMs) }