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:
Torsten Grote 2024-10-17 15:19:33 -03:00
parent a538a64395
commit 0ed6d5c2c0
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

@ -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()
}
} }
} }