Fixed an issue where RadiosFragment would wake up on track change even when the app is killed, causing a crash.
This commit is contained in:
parent
d76f820f9d
commit
6dcd9afc31
|
@ -37,7 +37,8 @@ class RadiosFragment : FunkwhaleFragment<Radio, RadiosAdapter>() {
|
|||
GlobalScope.launch(Main) {
|
||||
EventBus.get().collect { message ->
|
||||
when (message) {
|
||||
is Event.RadioStarted -> recycler.forEach {
|
||||
is Event.RadioStarted ->
|
||||
if (radios != null) { recycler.forEach {
|
||||
it.isEnabled = true
|
||||
it.isClickable = true
|
||||
}
|
||||
|
@ -47,3 +48,4 @@ class RadiosFragment : FunkwhaleFragment<Radio, RadiosAdapter>() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue