From f3d19aa6f42d3604511b58aae4936cba87fb1d84 Mon Sep 17 00:00:00 2001 From: Roumen Georgiev Date: Fri, 1 Jun 2018 09:38:18 +0300 Subject: [PATCH] convert int values to strings --- .../PumpDanaR/activities/DanaRUserOptionsActivity.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaR/activities/DanaRUserOptionsActivity.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaR/activities/DanaRUserOptionsActivity.java index 5a2ca30230..b3e6f20b8f 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaR/activities/DanaRUserOptionsActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaR/activities/DanaRUserOptionsActivity.java @@ -93,6 +93,7 @@ public class DanaRUserOptionsActivity extends Activity { boolean isKorean = MainApp.getSpecificPlugin(DanaRKoreanPlugin.class) != null && MainApp.getSpecificPlugin(DanaRKoreanPlugin.class).isEnabled(PluginType.PUMP); boolean isRS = MainApp.getSpecificPlugin(DanaRSPlugin.class) != null && MainApp.getSpecificPlugin(DanaRSPlugin.class).isEnabled(PluginType.PUMP); + Activity activity = this; if (activity != null) activity.runOnUiThread(new Runnable() { @@ -112,10 +113,10 @@ public class DanaRUserOptionsActivity extends Activity { if(pump.buttonScrollOnOff != 0) { buttonScroll.setChecked(true); } - screenTimeout.setText(pump.lcdOnTimeSec); - backlightTimeout.setText(pump.backlightOnTimeSec); - shutdown.setText(pump.shutdownHour); - lowReservoir.setText(pump.lowReservoirRate); + screenTimeout.setText(String.valueOf(pump.lcdOnTimeSec)); + backlightTimeout.setText(String.valueOf(pump.backlightOnTimeSec)); + shutdown.setText(String.valueOf(pump.shutdownHour)); + lowReservoir.setText(String.valueOf(pump.lowReservoirRate)); } }); }