Skip to content

Commit

Permalink
feat(bank-sdk): Finish the example app's ClientGiniCaptureFragment
Browse files Browse the repository at this point in the history
…after the Bank SDK finishes with a result

BSDK-258
  • Loading branch information
a-szotyori committed Jan 19, 2024
1 parent 70bd7b2 commit 4b28f1a
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,15 @@ class ClientGiniCaptureFragment :

else -> {}
}
if (isIntentActionViewOrSend(requireActivity().intent)) {
requireActivity().finish()
}
requireActivity().finish()
}

CaptureResult.Empty -> {
if (isIntentActionViewOrSend(requireActivity().intent)) {
requireActivity().finish()
}
requireActivity().finish()
}

CaptureResult.Cancel -> {
if (isIntentActionViewOrSend(requireActivity().intent)) {
requireActivity().finish()
}
requireActivity().finish()
}

CaptureResult.EnterManually -> {
Expand All @@ -168,9 +162,7 @@ class ClientGiniCaptureFragment :
"Scan exited for manual enter mode",
Toast.LENGTH_SHORT
).show()
if (isIntentActionViewOrSend(requireActivity().intent)) {
requireActivity().finish()
}
requireActivity().finish()
}
}
}
Expand Down

0 comments on commit 4b28f1a

Please sign in to comment.