Don't show toolbar for recovery code when restoring
This restores original behavior and should make CI pass which otherwise can't see the last two words.
This commit is contained in:
parent
a538a64395
commit
0ed6d5c2c0
1 changed files with 6 additions and 2 deletions
|
@ -107,8 +107,12 @@ class RecoveryCodeInputFragment : Fragment() {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
view.requireViewById<Toolbar>(R.id.toolbar).apply {
|
view.requireViewById<Toolbar>(R.id.toolbar).apply {
|
||||||
setNavigationOnClickListener {
|
if (viewModel.isRestore) {
|
||||||
requireActivity().onBackPressedDispatcher.onBackPressed()
|
visibility = GONE
|
||||||
|
} else {
|
||||||
|
setNavigationOnClickListener {
|
||||||
|
requireActivity().onBackPressedDispatcher.onBackPressed()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue