Updated on 2026-08-14

This commit is contained in:
Tangem 2020-01-27 12:13:49 +03:00
parent 6343890eb5
commit 049ef159dd
3 changed files with 2 additions and 9 deletions

View file

@ -47,7 +47,6 @@ class IdFragment : BaseFragment(), NfcAdapter.ReaderCallback,
override val layoutId = R.layout.fragment_id
private lateinit var viewModel: LoadedWalletViewModel
private lateinit var ctx: TangemContext
private lateinit var mpSecondScanSound: MediaPlayer
private var serverApiCommon: ServerApiCommon = ServerApiCommon()
@ -121,7 +120,6 @@ class IdFragment : BaseFragment(), NfcAdapter.ReaderCallback,
if (hasIdInfo == null) tvBalanceLine1?.text = "Reading... Hold the card firmly"
btnNewScan.setOnClickListener {
// navigateToDestination(R.id.action_loadedWalletFragment_to_main)
navigateUp()
}
@ -328,7 +326,7 @@ class IdFragment : BaseFragment(), NfcAdapter.ReaderCallback,
5000)
}
if (srl.isRefreshing && hasIdInfo != null && hasIdInfo != false) {
if (srl.isRefreshing && ctx.card?.hasIDCardData() != false) {
tvBalanceLine1.setTextColor(resources.getColor(R.color.primary))
tvBalanceLine1.text = getString(R.string.loaded_wallet_verifying_in_blockchain)
tvBalanceLine2.text = ""
@ -376,9 +374,6 @@ class IdFragment : BaseFragment(), NfcAdapter.ReaderCallback,
if (ctx.card.hasIDCardData()) requestBalanceAndUnspentTransactions()
if (::viewModel.isInitialized)
viewModel.requestRateInfo(ctx)
if (requestCounter == 0) {
// if no connection and no requests posted
srl?.isRefreshing = false

View file

@ -2,7 +2,6 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -33,7 +32,7 @@
android:id="@+id/ivTakePicture"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginTop="80dp"
android:layout_marginTop="16dp"
android:src="@drawable/ic_take_picture"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

View file

@ -55,7 +55,6 @@
android:fontFamily="@font/maaxmedium"
android:textAlignment="center"
android:visibility="visible"
tools:text="Verified in blockchain"
tools:textColor="@color/confirmed" />
<TextView