Updated on 2026-08-14
This commit is contained in:
commit
9a31dd55e7
4 changed files with 15 additions and 3 deletions
|
|
@ -88,11 +88,16 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
|
|||
resources.getColorStateList(R.color.btn_dark)
|
||||
}
|
||||
private val activeColor: ColorStateList by lazy {
|
||||
val color = if( (Util.bytesToHex(ctx.card?.cid)?.startsWith("10") == true)) {
|
||||
R.color.start2coin_orange
|
||||
} else {
|
||||
R.color.colorAccent
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
||||
resources.getColorStateList(R.color.colorAccent, activity?.theme)
|
||||
resources.getColorStateList(color, activity?.theme)
|
||||
else
|
||||
@Suppress("DEPRECATION")
|
||||
resources.getColorStateList(R.color.colorAccent)
|
||||
resources.getColorStateList(color)
|
||||
}
|
||||
private var requestCounter: Int = 0
|
||||
set(value) {
|
||||
|
|
@ -144,6 +149,10 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
|
|||
|
||||
btnCopy.setOnClickListener { doShareWallet(false) }
|
||||
|
||||
if (Util.bytesToHex(ctx.card?.cid)?.startsWith("10") == true) {
|
||||
btnLoad?.visibility = View.GONE
|
||||
}
|
||||
|
||||
btnLoad.setOnClickListener {
|
||||
val items = arrayOf<CharSequence>(getString(R.string.in_app), getString(R.string.load_via_share_address), getString(R.string.load_via_qr))//, getString(R.string.via_cryptonit), getString(R.string.via_kraken))
|
||||
val cw = android.view.ContextThemeWrapper(activity, R.style.AlertDialogTheme)
|
||||
|
|
|
|||
|
|
@ -38,5 +38,6 @@
|
|||
<color name="bg_err">#600600</color>
|
||||
<color name="bg_msg">#bff2af</color>
|
||||
<color name="cardview_shadow_star">#37000000</color>
|
||||
<color name="start2coin_orange">#f9af25</color>
|
||||
|
||||
</resources>
|
||||
|
|
@ -47,7 +47,7 @@ class LocalStorage
|
|||
artworks = HashMap()
|
||||
}
|
||||
|
||||
if (artworks.count() < 28) {
|
||||
if (artworks.count() < 29) {
|
||||
// forceSave=true only on the last one
|
||||
putResourceArtworkToCatalog(R.drawable.card_default, false)
|
||||
putResourceArtworkToCatalog(R.drawable.card_default_nft, false)
|
||||
|
|
@ -76,6 +76,7 @@ class LocalStorage
|
|||
putResourceArtworkToCatalog(R.drawable.card_ru042, false)
|
||||
putResourceArtworkToCatalog(R.drawable.card_ru043, false)
|
||||
putResourceArtworkToCatalog(R.drawable.card_tg044, false)
|
||||
putResourceArtworkToCatalog(R.drawable.card_tg046, false)
|
||||
putResourceArtworkToCatalog(R.drawable.card_ff32, true)
|
||||
}
|
||||
if (batchesFile.exists()) {
|
||||
|
|
@ -260,6 +261,7 @@ class LocalStorage
|
|||
card.batch == "0028" -> R.drawable.card_ru040
|
||||
card.batch == "0029" -> R.drawable.card_ru041
|
||||
card.batch == "0031" -> R.drawable.card_ru042
|
||||
card.batch == "0034" -> R.drawable.card_tg046
|
||||
card.batch == "FF32" -> R.drawable.card_ff32
|
||||
|
||||
else -> null
|
||||
|
|
|
|||
BIN
server-android/src/main/res/drawable/card_tg046.png
Normal file
BIN
server-android/src/main/res/drawable/card_tg046.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 237 KiB |
Loading…
Add table
Add a link
Reference in a new issue