From 0ed6d5c2c08e4fcc75a44b88a9ecd8cba9c32113 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 17 Oct 2024 15:19:33 -0300 Subject: [PATCH] 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. --- .../ui/recoverycode/RecoveryCodeInputFragment.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/recoverycode/RecoveryCodeInputFragment.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/recoverycode/RecoveryCodeInputFragment.kt index bfa8db60..77ec609d 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/ui/recoverycode/RecoveryCodeInputFragment.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/ui/recoverycode/RecoveryCodeInputFragment.kt @@ -107,8 +107,12 @@ class RecoveryCodeInputFragment : Fragment() { super.onViewCreated(view, savedInstanceState) view.requireViewById(R.id.toolbar).apply { - setNavigationOnClickListener { - requireActivity().onBackPressedDispatcher.onBackPressed() + if (viewModel.isRestore) { + visibility = GONE + } else { + setNavigationOnClickListener { + requireActivity().onBackPressedDispatcher.onBackPressed() + } } }