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,9 +37,11 @@ class RadiosFragment : FunkwhaleFragment<Radio, RadiosAdapter>() {
|
|||
GlobalScope.launch(Main) {
|
||||
EventBus.get().collect { message ->
|
||||
when (message) {
|
||||
is Event.RadioStarted -> recycler.forEach {
|
||||
it.isEnabled = true
|
||||
it.isClickable = true
|
||||
is Event.RadioStarted ->
|
||||
if (radios != null) { recycler.forEach {
|
||||
it.isEnabled = true
|
||||
it.isClickable = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue