Updated on 2026-08-14
This commit is contained in:
parent
dc14c2c0bc
commit
b0646dcec0
3 changed files with 10 additions and 328 deletions
|
|
@ -56,7 +56,7 @@ public class CardListAdapter extends RecyclerView.Adapter<CardListAdapter.CardVi
|
|||
tvType = itemView.findViewById(R.id.tvType);
|
||||
tvTypeBg = itemView.findViewById(R.id.tvTypeBg);
|
||||
tvVoid = itemView.findViewById(R.id.tvVoid);
|
||||
tvInputs = itemView.findViewById(R.id.tvInputs);
|
||||
// tvInputs = itemView.findViewById(R.id.tvInputs);
|
||||
tvLastInput = itemView.findViewById(R.id.tvLastInput);
|
||||
lbLastInput = itemView.findViewById(R.id.lbLastInput);
|
||||
lbLastOutput = itemView.findViewById(R.id.lbLastOutput);
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ class LoadedWallet : Fragment(), NfcAdapter.ReaderCallback, CardProtocol.Notific
|
|||
val visibleFlag = engine?.InOutPutVisible() ?: true
|
||||
val visibleIOPuts = if (visibleFlag) View.VISIBLE else View.GONE
|
||||
|
||||
tvInputs.visibility = visibleIOPuts
|
||||
// tvInputs.visibility = visibleIOPuts
|
||||
|
||||
try {
|
||||
ivQR.setImageBitmap(UtilHelper.generateQrCode(engine!!.getShareWalletURI(mCard).toString()))
|
||||
|
|
@ -497,14 +497,6 @@ class LoadedWallet : Fragment(), NfcAdapter.ReaderCallback, CardProtocol.Notific
|
|||
|
||||
if (needResendTX)
|
||||
sendTransaction(LastSignStorage.getTxForSend(mCard!!.wallet))
|
||||
|
||||
|
||||
// if (activity!!.intent.extras!!.containsKey(NfcAdapter.EXTRA_TAG)) {
|
||||
// val tag = activity!!.intent.getParcelableExtra<Tag>(NfcAdapter.EXTRA_TAG)
|
||||
// if (tag != null) {
|
||||
// onTagDiscovered(tag)
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
override fun onTagDiscovered(tag: Tag) {
|
||||
|
|
@ -630,8 +622,6 @@ class LoadedWallet : Fragment(), NfcAdapter.ReaderCallback, CardProtocol.Notific
|
|||
tvBalance.text = engine.GetBalanceWithAlter(mCard)
|
||||
}
|
||||
|
||||
tvBalanceEquivalent.text = engine.GetBalanceEquivalent(mCard)
|
||||
tvOffline.visibility = View.INVISIBLE
|
||||
} else {
|
||||
val offlineAmount = engine.ConvertByteArrayToAmount(mCard, mCard!!.offlineBalance)
|
||||
if (mCard!!.blockchain == Blockchain.Token) {
|
||||
|
|
@ -639,34 +629,14 @@ class LoadedWallet : Fragment(), NfcAdapter.ReaderCallback, CardProtocol.Notific
|
|||
} else {
|
||||
tvBalance.text = engine.GetAmountDescription(mCard, offlineAmount)
|
||||
}
|
||||
|
||||
tvBalanceEquivalent.text = engine.GetAmountEqualentDescriptor(mCard, offlineAmount)
|
||||
tvOffline.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
if (!mCard!!.amountEquivalentDescriptionAvailable) {
|
||||
|
||||
} else {
|
||||
tvBalanceEquivalent.error = null
|
||||
}
|
||||
|
||||
tvWallet.text = mCard!!.wallet
|
||||
|
||||
tvInputs.text = mCard!!.inputsDescription
|
||||
when {
|
||||
mCard!!.lastInputDescription.contains("awaiting") -> tvInputs.setTextColor(ContextCompat.getColor(context!!, R.color.not_confirmed))
|
||||
mCard!!.lastInputDescription.contains("None") -> tvInputs.setTextColor(ContextCompat.getColor(context!!, R.color.primary_dark))
|
||||
else -> tvInputs.setTextColor(ContextCompat.getColor(context!!, R.color.confirmed))
|
||||
}
|
||||
|
||||
tvBlockchain.text = mCard!!.blockchainName
|
||||
|
||||
tvValidationNode.text = mCard!!.validationNodeDescription
|
||||
|
||||
btnExtract!!.isEnabled = mCard!!.hasBalanceInfo()
|
||||
|
||||
tvIssuer.text = mCard!!.issuerDescription
|
||||
|
||||
mCard!!.error = null
|
||||
mCard!!.message = null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue