Updated on 2026-08-14
This commit is contained in:
parent
5226ce7667
commit
e8c6dfadee
4 changed files with 20 additions and 10 deletions
|
|
@ -24,8 +24,8 @@
|
|||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<provider
|
||||
android:name="com.tangem.LogFileProvider"
|
||||
android:authorities="com.tangem.LogFileProvider"
|
||||
android:name="com.tangem.data.LogFileProvider"
|
||||
android:authorities="com.tangem.data.LogFileProvider"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true"/>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem;
|
||||
package com.tangem.data;
|
||||
|
||||
import android.content.ContentProvider;
|
||||
import android.content.ContentValues;
|
||||
|
|
@ -464,16 +464,26 @@ public class ConfirmPaymentActivity extends AppCompatActivity implements NfcAdap
|
|||
//String mWalletAddress = request.getParams().getString(0);
|
||||
if ((request.getResult().getInt("confirmed") + request.getResult().getInt("unconfirmed")) / mCard.getBlockchain().getMultiplier() * 1000000.0 < Float.parseFloat(etAmount.getText().toString())) {
|
||||
etFee.setError("Not enough funds");
|
||||
balanceRequestSuccess = false;
|
||||
btnSend.setVisibility(View.INVISIBLE);
|
||||
dtVerifyed = null;
|
||||
nodeCheck = false;
|
||||
if (sharedCounter == null) {
|
||||
balanceRequestSuccess = false;
|
||||
btnSend.setVisibility(View.INVISIBLE);
|
||||
dtVerifyed = null;
|
||||
nodeCheck = false;
|
||||
} else {
|
||||
int errCounter = sharedCounter.errorRequest.incrementAndGet();
|
||||
if (errCounter >= sharedCounter.allRequest) {
|
||||
balanceRequestSuccess = false;
|
||||
btnSend.setVisibility(View.INVISIBLE);
|
||||
dtVerifyed = null;
|
||||
nodeCheck = false;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
etFee.setError(null);
|
||||
balanceRequestSuccess = true;
|
||||
if (feeRequestSuccess && balanceRequestSuccess) {
|
||||
btnSend.setVisibility(View.VISIBLE);
|
||||
|
||||
}
|
||||
dtVerifyed = new Date();
|
||||
nodeCheck = true;
|
||||
|
|
|
|||
|
|
@ -30,13 +30,13 @@ import android.widget.TextView;
|
|||
|
||||
import com.scottyab.rootbeer.RootBeer;
|
||||
import com.skyfishjy.library.RippleBackground;
|
||||
import com.tangem.LogFileProvider;
|
||||
import com.tangem.data.LogFileProvider;
|
||||
import com.tangem.domain.wallet.DeviceNFCAntennaLocation;
|
||||
import com.tangem.domain.wallet.LastSignStorage;
|
||||
import com.tangem.domain.wallet.Logger;
|
||||
import com.tangem.domain.wallet.PINStorage;
|
||||
import com.tangem.util.PhoneUtility;
|
||||
import com.tangem.presentation.fragment.MainFragment;
|
||||
import com.tangem.util.PhoneUtility;
|
||||
import com.tangem.wallet.BuildConfig;
|
||||
import com.tangem.wallet.R;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue