use SafeParse in DanaRStartsActivity

This commit is contained in:
Milos Kozak 2017-02-09 16:32:44 +01:00
parent b9b08c1528
commit caa109dbfd
2 changed files with 4 additions and 2 deletions

View file

@ -56,6 +56,7 @@ import info.nightscout.androidaps.plugins.DanaR.comm.RecordTypes;
import info.nightscout.androidaps.plugins.DanaR.events.EventDanaRConnectionStatus;
import info.nightscout.androidaps.plugins.DanaR.events.EventDanaRSyncStatus;
import info.nightscout.utils.DecimalFormatter;
import info.nightscout.utils.SafeParse;
import info.nightscout.utils.ToastUtils;
public class DanaRStatsActivity extends Activity {
@ -366,7 +367,7 @@ public class DanaRStatsActivity extends Activity {
return;
}
else {
magicNumber = Double.parseDouble(TBB);
magicNumber = SafeParse.stringToDouble(TBB);
}
magicNumber *=2;

View file

@ -56,6 +56,7 @@ import info.nightscout.androidaps.plugins.DanaR.events.EventDanaRConnectionStatu
import info.nightscout.androidaps.plugins.DanaR.events.EventDanaRSyncStatus;
import info.nightscout.androidaps.plugins.DanaRKorean.Services.ExecutionService;
import info.nightscout.utils.DecimalFormatter;
import info.nightscout.utils.SafeParse;
import info.nightscout.utils.ToastUtils;
public class DanaRStatsActivity extends Activity {
@ -366,7 +367,7 @@ public class DanaRStatsActivity extends Activity {
return;
}
else {
magicNumber = Double.parseDouble(TBB);
magicNumber = SafeParse.stringToDouble(TBB);
}
magicNumber *=2;