[6.6.0][状态栏] fix: 推出登录 StatusModel 数据reset;

This commit is contained in:
aibingbing
2024-09-10 14:22:17 +08:00
parent b419d95021
commit 83232bd482
2 changed files with 7 additions and 0 deletions

View File

@@ -171,6 +171,8 @@ object StatusManager {
}
listeners.clear()
flows.clear()
model.resetData()
last.set(null)
}
fun addListener(tag: String, listener: IStatusListener) {

View File

@@ -50,6 +50,11 @@ internal class StatusModel : ViewModel() {
}
}
fun resetData() {
status.value = DEFAULTS
old.set(null)
}
private fun getExceptionStatus(l: ArrayList<Status>): Status? {
return l.find { it.isException() }
}