mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 07:20:47 -05:00
Optimize navigation back stack
Fix topjohnwu#4333 Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
committed by
John Wu
co-authored by
LoveSy
parent
1f5992f2c2
commit
b0fba6ce5b
@@ -98,8 +98,8 @@ abstract class BaseViewModel(
|
||||
_viewEvents.postValue(this)
|
||||
}
|
||||
|
||||
fun NavDirections.navigate() {
|
||||
_viewEvents.postValue(NavigationEvent(this))
|
||||
fun NavDirections.navigate(pop: Boolean = false) {
|
||||
_viewEvents.postValue(NavigationEvent(this, pop))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user