Skip to content

Commit

Permalink
chore: remove unnecessary handling exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxzero committed Sep 21, 2023
1 parent 7b41485 commit c99612c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,9 @@ class AuthorizingPaymentActivity : AppCompatActivity() {
private fun openDeepLink(uri: Uri) {
try {
val externalIntent = Intent(Intent.ACTION_VIEW, uri)
startActivity(externalIntent)
startActivityForResult(externalIntent, REQUEST_EXTERNAL_CODE)
} catch (e: ActivityNotFoundException) {
finishActivityWithFailure(OmiseException("Cannot find activity.", e))
} catch (e: Exception) {
finishActivityWithFailure(OmiseException("Open external app failed.", e))
finishActivityWithFailure(OmiseException("Open deep-link failed.", e))
}
}

Expand Down

0 comments on commit c99612c

Please sign in to comment.