do not restart the song at device rotation
This commit is contained in:
parent
ee46d9549a
commit
f6385a44b8
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue