Commit 5f4cd50c authored by 石松洲's avatar 石松洲 Committed by John Wu

Properly prevent fix env dialog from constantly showing

ViewModel has been reconstructed when switching fragment so we lost previous state.
parent b0fba6ce
......@@ -80,7 +80,9 @@ class HomeViewModel(
it.bindExtra(BR.viewModel, this)
}
private var checkedEnv = false
companion object {
private var checkedEnv = false
}
override fun refresh() = viewModelScope.launch {
state = State.LOADING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment