启用预测性返回手势
This commit is contained in:
1 parent
b7c50dff05
commit
96f25a05fa
2 files changed
+5
-3
No files matched your search
@@ -29,6 +29,9 @@ class ConfigActivity : VMBaseActivity<ActivityConfigBinding, ConfigViewModel>()
|
||||
override fun setTitle(resId: Int) {
|
||||
super.setTitle(resId)
|
||||
binding.topBar.setTitle(resId)
|
||||
binding.topBar.setNavigationOnClickListener {
|
||||
onBackPressedDispatcher.onBackPressed()
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <reified T : Fragment> replaceFragment(configTag: String) {
|
||||
|
||||
Reference in new issue
Block a user