We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc2e4d commit 925539eCopy full SHA for 925539e
app/src/main/java/com/rootstrap/android/ui/base/BaseViewModel.kt
@@ -1,6 +1,8 @@
1
package com.rootstrap.android.ui.base
2
3
-import androidx.lifecycle.*
+import androidx.lifecycle.LiveData
4
+import androidx.lifecycle.MutableLiveData
5
+import androidx.lifecycle.ViewModel
6
import com.rootstrap.android.util.NetworkState
7
8
/**
@@ -13,10 +15,4 @@ open class BaseViewModel : ViewModel() {
13
15
protected val _networkState = MutableLiveData<NetworkState>()
14
16
val networkState: LiveData<NetworkState>
17
get() = _networkState
-
- /* @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
18
- fun register() = Bus().register(this)
19
20
- @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
21
- fun unregister() = Bus().unregister(this) */
22
}
0 commit comments