mirror of
https://github.com/fcitx5-android/fcitx5-android.git
synced 2026-08-02 04:44:35 +08:00
Fix title resets that occur after a screen rotation
This commit is contained in:
parent
eac752e60d
commit
8d2f05713d
@ -66,7 +66,7 @@ class MainActivity : AppCompatActivity() {
|
||||
navController = binding.navHostFragment.getFragment<NavHostFragment>().navController
|
||||
navController.graph = SettingsRoute.createGraph(navController)
|
||||
viewModel.toolbarTitle.observe(this) {
|
||||
binding.toolbar.title = it
|
||||
supportActionBar!!.title = it
|
||||
}
|
||||
viewModel.toolbarShadow.observe(this) {
|
||||
binding.toolbar.elevation = dp(if (it) 4f else 0f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user