Updated on 2026-08-14
This commit is contained in:
commit
ffb96dec66
3 changed files with 22 additions and 22 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue