finish TrackActivity if there is no current song
This commit is contained in:
parent
daf395734a
commit
d138876f82
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ class TrackActivity : SimpleActivity() {
|
|||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun songChangedEvent(event: Events.SongChanged) {
|
||||
val song = event.song
|
||||
if (song != null) {
|
||||
if (song == null) {
|
||||
finish()
|
||||
} else {
|
||||
setupTrackInfo(event.song)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue