Skip to content

Commit

Permalink
Don't show toolbar for recovery code when restoring
Browse files Browse the repository at this point in the history
This restores original behavior and should make CI pass which otherwise can't see the last two words.
  • Loading branch information
grote committed Oct 17, 2024
1 parent a538a64 commit 0ed6d5c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ class RecoveryCodeInputFragment : Fragment() {
super.onViewCreated(view, savedInstanceState)

view.requireViewById<Toolbar>(R.id.toolbar).apply {
setNavigationOnClickListener {
requireActivity().onBackPressedDispatcher.onBackPressed()
if (viewModel.isRestore) {
visibility = GONE
} else {
setNavigationOnClickListener {
requireActivity().onBackPressedDispatcher.onBackPressed()
}
}
}

Expand Down

0 comments on commit 0ed6d5c

Please sign in to comment.