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) {
|
GlobalScope.launch(Main) {
|
||||||
EventBus.get().collect { message ->
|
EventBus.get().collect { message ->
|
||||||
when (message) {
|
when (message) {
|
||||||
is Event.RadioStarted -> recycler.forEach {
|
is Event.RadioStarted ->
|
||||||
it.isEnabled = true
|
if (radios != null) { recycler.forEach {
|
||||||
it.isClickable = true
|
it.isEnabled = true
|
||||||
|
it.isClickable = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue