Updated on 2026-08-14

This commit is contained in:
Tangem 2018-07-18 11:35:56 +03:00
parent a79b496bb6
commit b272a54010
4 changed files with 22 additions and 22 deletions

Binary file not shown.

View file

@ -16,7 +16,7 @@ android {
minSdkVersion 21
targetSdkVersion 27
versionCode 43
versionName "0.85.5." + generateVersionName()
versionName "0.87.1." + generateVersionName()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {

View file

@ -79,20 +79,20 @@ public class NfcManager {
int errorCount = 0;
public void notifyReadResult(boolean success) {
if (success) {
errorCount = 0;
} else {
errorCount++;
}
if (errorCount >= 3) {
disableReaderMode();
mNfcAdapter = null;
// Toast.makeText(mActivity,"NFC restarted!",Toast.LENGTH_SHORT).show();
mActivity.runOnUiThread(() -> {
mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity);
enableReaderMode();
});
}
// if (success) {
// errorCount = 0;
// } else {
// errorCount++;
// }
// if (errorCount >= 3) {
// disableReaderMode();
// mNfcAdapter = null;
//// Toast.makeText(mActivity,"NFC restarted!",Toast.LENGTH_SHORT).show();
// mActivity.runOnUiThread(() -> {
// mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity);
// enableReaderMode();
// });
// }
}
private void showNFCEnableDialog() {

View file

@ -67,12 +67,12 @@ public class BalanceValidator {
}
}
if(card.getFailedBalanceRequestCounter()!=0) {
score -= 5 * card.getFailedBalanceRequestCounter();
secondLine += "Not all nodes have returned balance. Swipe down or tap again. ";
if(score <= 0)
return;
}
// if(card.getFailedBalanceRequestCounter()!=0) {
// score -= 5 * card.getFailedBalanceRequestCounter();
// secondLine += "Not all nodes have returned balance. Swipe down or tap again. ";
// if(score <= 0)
// return;
// }
//
// if(card.isBalanceRecieved() && !card.isBalanceEqual()) {
@ -116,7 +116,7 @@ public class BalanceValidator {
{
score -= 50;
firstLine = "Unguaranteed balance";
secondLine += "Potential unsent transaction at the moment. Try to tap and check this banknote later. ";
secondLine += "Potential unsent transaction at the moment. Check this banknote later. ";
if(score <= 0)
return;
}