Updated on 2026-08-14
This commit is contained in:
parent
ee88184e1d
commit
04a118510f
2 changed files with 5 additions and 3 deletions
|
|
@ -76,14 +76,14 @@ class SendTransactionFragment : BaseFragment(), NfcAdapter.ReaderCallback {
|
|||
}
|
||||
|
||||
private fun finishWithSuccess() {
|
||||
val transactionFinishWithSuccess = TransactionFinishWithSuccess()
|
||||
EventBus.getDefault().post(transactionFinishWithSuccess)
|
||||
|
||||
activity?.let {
|
||||
val params = bundleOf(AnalyticsParam.BLOCKCHAIN.param to ctx.blockchainName)
|
||||
FirebaseAnalytics.getInstance(it).logEvent(AnalyticsEvent.TRANSACTION_IS_SENT.event, params)
|
||||
}
|
||||
|
||||
val transactionFinishWithSuccess = TransactionFinishWithSuccess()
|
||||
EventBus.getDefault().post(transactionFinishWithSuccess)
|
||||
|
||||
val data = Bundle()
|
||||
data.putString(Constant.EXTRA_MESSAGE, getString(R.string.send_transaction_success))
|
||||
navigateBackWithResult(Activity.RESULT_OK, data, R.id.loadedWalletFragment)
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
|
|||
@Subscribe
|
||||
fun onTransactionFinishWithSuccess(transactionFinishWithSuccess: TransactionFinishWithSuccess) {
|
||||
refreshAction = Runnable { refresh() }
|
||||
ctx.card.remainingSignatures -= 1
|
||||
srl?.postDelayed(refreshAction, 10000)
|
||||
}
|
||||
|
||||
|
|
@ -478,6 +479,7 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
|
|||
|
||||
Constant.REQUEST_CODE_SEND_TRANSACTION, Constant.REQUEST_CODE_RECEIVE_TRANSACTION -> {
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
// ctx.card.remainingSignatures = ctx.card.remainingSignatures - 1
|
||||
ctx.coinData?.clearInfo()
|
||||
srl?.postDelayed({ this.refresh() }, 5000)
|
||||
srl?.isRefreshing = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue