Always call prepare on adding items
This commit is contained in:
parent
dda86b42c7
commit
d550eabf88
|
@ -50,7 +50,6 @@ import org.moire.ultrasonic.data.ServerSettingDao
|
||||||
import org.moire.ultrasonic.fragment.OnBackPressedHandler
|
import org.moire.ultrasonic.fragment.OnBackPressedHandler
|
||||||
import org.moire.ultrasonic.model.ServerSettingsModel
|
import org.moire.ultrasonic.model.ServerSettingsModel
|
||||||
import org.moire.ultrasonic.provider.SearchSuggestionProvider
|
import org.moire.ultrasonic.provider.SearchSuggestionProvider
|
||||||
import org.moire.ultrasonic.service.DownloadFile
|
|
||||||
import org.moire.ultrasonic.service.MediaPlayerController
|
import org.moire.ultrasonic.service.MediaPlayerController
|
||||||
import org.moire.ultrasonic.service.MediaPlayerLifecycleSupport
|
import org.moire.ultrasonic.service.MediaPlayerLifecycleSupport
|
||||||
import org.moire.ultrasonic.service.RxBus
|
import org.moire.ultrasonic.service.RxBus
|
||||||
|
|
|
@ -343,8 +343,9 @@ class MediaPlayerController(
|
||||||
|
|
||||||
if (shuffle) isShufflePlayEnabled = true
|
if (shuffle) isShufflePlayEnabled = true
|
||||||
|
|
||||||
if (autoPlay) {
|
|
||||||
prepare()
|
prepare()
|
||||||
|
|
||||||
|
if (autoPlay) {
|
||||||
play(0)
|
play(0)
|
||||||
} else {
|
} else {
|
||||||
downloader.checkDownloads()
|
downloader.checkDownloads()
|
||||||
|
|
Loading…
Reference in New Issue