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