Skip to content

Commit

Permalink
Only navigate up on key deletion if we are currently in the credentia…
Browse files Browse the repository at this point in the history
…l selection fragment
  • Loading branch information
TheMartinizer committed Aug 19, 2024
1 parent 7075248 commit c670380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class CredentialSelectorFragment : AuthenticatorActivityFragment() {
// If credential is deleted, make leave the fragment, since the list is no longer valid
// There is probably some way to update the list, but it doesn't seem to work from inside
// the authenticatorActivity's lifecycleScope
if (deletionSucceeded) {
if (deletionSucceeded && findNavController().currentDestination?.id == R.id.credentialSelectorFragment) {
findNavController().navigateUp()
}
}
Expand Down

0 comments on commit c670380

Please sign in to comment.