Always call prepare on adding items

This commit is contained in:
tzugen 2022-04-21 10:12:05 +02:00
parent dda86b42c7
commit d550eabf88
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,6 @@ import org.moire.ultrasonic.data.ServerSettingDao
import org.moire.ultrasonic.fragment.OnBackPressedHandler
import org.moire.ultrasonic.model.ServerSettingsModel
import org.moire.ultrasonic.provider.SearchSuggestionProvider
import org.moire.ultrasonic.service.DownloadFile
import org.moire.ultrasonic.service.MediaPlayerController
import org.moire.ultrasonic.service.MediaPlayerLifecycleSupport
import org.moire.ultrasonic.service.RxBus

View File

@ -343,8 +343,9 @@ class MediaPlayerController(
if (shuffle) isShufflePlayEnabled = true
if (autoPlay) {
prepare()
if (autoPlay) {
play(0)
} else {
downloader.checkDownloads()