do not restart the song at device rotation

This commit is contained in:
tibbi 2021-01-03 19:09:55 +01:00
parent ee46d9549a
commit f6385a44b8

View file

@ -70,6 +70,7 @@ class TrackActivity : SimpleActivity() {
setupTrackInfo(track)
if (intent.getBooleanExtra(RESTART_PLAYER, false)) {
intent.removeExtra(RESTART_PLAYER)
Intent(this, MusicService::class.java).apply {
putExtra(TRACK_ID, track.mediaStoreId)
action = INIT