File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/src/main/kotlin/org/fossify/musicplayer Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ import kotlin.time.Duration.Companion.milliseconds
7070class TrackActivity : SimpleControllerActivity (), PlaybackSpeedListener {
7171 companion object {
7272 private const val SWIPE_DOWN_THRESHOLD = 100
73- private const val SEEK_COALESCE_INTERVAL_MS = 200L
73+ private const val SEEK_COALESCE_INTERVAL_MS = 150L
7474 private const val UPDATE_INTERVAL_MS = 150L
7575 }
7676
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ internal fun PlaybackService.getMediaSessionCallback() = object : MediaLibrarySe
194194 controller : MediaSession .ControllerInfo ,
195195 mediaItems : List <MediaItem >
196196 ): ListenableFuture <List <MediaItem >> {
197- return callWhenSourceReady {
197+ return executorService.submit< List < MediaItem >> {
198198 val items = mediaItems.map { mediaItem ->
199199 if (mediaItem.requestMetadata.searchQuery != null ) {
200200 getMediaItemFromSearchQuery(mediaItem.requestMetadata.searchQuery!! )
You can’t perform that action at this time.
0 commit comments