#A0000173088: Fix su lettura ul anonima.

This commit is contained in:
2019-03-07 18:22:55 +01:00
parent d0aed1ed17
commit 06a55e2a5c
5 changed files with 52 additions and 12 deletions

View File

@@ -40,7 +40,6 @@ public class ServerStatusChecker {
public void addCallback(RunnableArgs<Boolean> callback){
this.mCallback.add(callback);
}
public void removeCallback(RunnableArgs<Boolean> callback){

View File

@@ -54,11 +54,7 @@ public class UtilityBarcode {
if(!UtilityString.isNullOrEmpty(barcode)) {
barcode = barcode.trim();
if(barcode.length() <= 7){
return Integer.parseInt(barcode.substring(3));
} else
return null;
return Integer.parseInt(barcode.substring(3));
} else
return null;
}

View File

@@ -145,7 +145,13 @@ public class MainFragment extends Fragment implements ITitledFragment, IScrollab
cyclicRecover(sessionsIterator, onComplete, onFailed);
}, ex -> {
onFailed.run(ex);
if(ex.getMessage().contains("Dati collo non corretti")) {
ColliDataRecover.closeSession(recoveredMtbColtID);
} else {
onFailed.run(ex);
}
cyclicRecover(sessionsIterator, onComplete, onFailed);
});
} else {