Updated on 2026-08-14
This commit is contained in:
parent
955da46b07
commit
6b2fa7b9be
4 changed files with 41 additions and 18 deletions
|
|
@ -86,7 +86,13 @@ internal class OnrampRedirectModel @Inject constructor(
|
|||
.onLeft(::handleError)
|
||||
.onRight {
|
||||
latestOnrampTransaction = it
|
||||
urlOpener.openUrl(it.redirectUrl)
|
||||
|
||||
// Workaround to open Unlimit provider in external browser instead of chrome custom tabs
|
||||
if (params.onrampProviderWithQuote.provider.id.equals(UNLIMIT_PROVIDER_ID, ignoreCase = true)) {
|
||||
urlOpener.openUrlExternalBrowser(it.redirectUrl)
|
||||
} else {
|
||||
urlOpener.openUrl(it.redirectUrl)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -127,4 +133,8 @@ internal class OnrampRedirectModel @Inject constructor(
|
|||
|
||||
messageSender.send(message)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val UNLIMIT_PROVIDER_ID = "unlimit"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue