Make LiveData nullable
This commit is contained in:
parent
bd935b0553
commit
f152b4c26e
@ -177,7 +177,7 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
|
||||
companion object : KoinComponent {
|
||||
const val ACTION_KEY = "download_action"
|
||||
|
||||
private val progressBroadcast = MutableLiveData<Pair<Float, Subject>>()
|
||||
private val progressBroadcast = MutableLiveData<Pair<Float, Subject>?>()
|
||||
|
||||
fun observeProgress(owner: LifecycleOwner, callback: (Float, Subject) -> Unit) {
|
||||
progressBroadcast.value = null
|
||||
|
Loading…
Reference in New Issue
Block a user