Updated on 2026-08-14

This commit is contained in:
Tangem 2019-04-03 10:33:45 +03:00
parent ce7b5e9f84
commit 9faacafc80
4 changed files with 48 additions and 42 deletions

View file

@ -6,6 +6,7 @@ import com.tangem.Constant
import com.tangem.domain.wallet.TangemContext
import com.tangem.ui.PrepareTransactionActivity
import com.tangem.ui.activity.*
import com.tangem.wallet.BuildConfig
class Navigator {
@ -70,11 +71,14 @@ class Navigator {
}
fun showPrepareTransaction(context: Activity, ctx: TangemContext) {
context.startActivityForResult(PrepareTransactionActivity.callingIntent(context, ctx), Constant.REQUEST_CODE_SEND_TRANSACTION)
}
fun showPrepareTransaction(context: Activity) {
context.startActivity(PrepareTransactionActivity.callingIntent(context))
when (BuildConfig.FLAVOR) {
Constant.FLAVOR_TANGEM_CARDANO -> {
context.startActivity(PrepareTransactionActivity.callingIntent(context))
}
else -> {
// context.startActivityForResult(PrepareTransactionActivity.callingIntent(context, ctx), Constant.REQUEST_CODE_SEND_TRANSACTION)
}
}
}
fun showCreateNewWallet(context: Activity, ctx: TangemContext) {