mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-22 13:17:43 +00:00
Make LiveData nullable
This commit is contained in:
@@ -177,7 +177,7 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
|
|||||||
companion object : KoinComponent {
|
companion object : KoinComponent {
|
||||||
const val ACTION_KEY = "download_action"
|
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) {
|
fun observeProgress(owner: LifecycleOwner, callback: (Float, Subject) -> Unit) {
|
||||||
progressBroadcast.value = null
|
progressBroadcast.value = null
|
||||||
|
Reference in New Issue
Block a user