Updated on 2026-08-14

This commit is contained in:
Tangem 2019-09-11 14:15:18 +03:00
parent 858f609667
commit 5186c17970
4 changed files with 15 additions and 3 deletions

View file

@ -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)