Skip to content
Snippets Groups Projects
Commit 8f8ef8f9 authored by Pogman's avatar Pogman
Browse files

fix conflict

parent f70ff417
No related branches found
No related tags found
No related merge requests found
......@@ -114,19 +114,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
private StatusMessageReceiver statusMessageReceiver = new StatusMessageReceiver();
private MedtronicCnlAlarmReceiver medtronicCnlAlarmReceiver = new MedtronicCnlAlarmReceiver();
public static String strFormatSGV(float sgvValue) {
if (mmolxl) {
NumberFormat sgvFormatter;
if (mmolxlDecimals)
sgvFormatter = new DecimalFormat("0.00");
else
sgvFormatter = new DecimalFormat("0.0");
return sgvFormatter.format(sgvValue / MMOLXLFACTOR);
} else {
return String.valueOf(sgvValue);
}
}
public static long getNextPoll(PumpStatusEvent pumpStatusData) {
long nextPoll = pumpStatusData.getEventDate().getTime() + pumpStatusData.getPumpTimeOffset()
+ MedtronicCnlIntentService.POLL_GRACE_PERIOD_MS;
......@@ -143,6 +130,20 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
return nextPoll;
}
public static String strFormatSGV(float sgvValue) {
if (mmolxl) {
NumberFormat sgvFormatter;
if (mmolxlDecimals) {
sgvFormatter = new DecimalFormat("0.00");
} else {
sgvFormatter = new DecimalFormat("0.0");
}
return sgvFormatter.format(sgvValue / MMOLXLFACTOR);
} else {
return String.valueOf(sgvValue);
}
}
@Override
public void onCreate(Bundle savedInstanceState) {
Log.i(TAG, "onCreate called");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment