From 142878a22b9a35eefb47292ea61c6f0111b65811 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 3 Nov 2017 21:41:20 +0100 Subject: [PATCH] Fix getting resources string in fragment. --- .../nightscout/androidaps/plugins/PumpCombo/ComboFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java index 2e14e63d74..3202b77c96 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java @@ -142,7 +142,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis lastConnectionView.setText(getString(R.string.combo_no_pump_connection, minAgo)); lastConnectionView.setTextColor(Color.RED); } else if (plugin.getPump().lastConnectionAttempt > plugin.getPump().lastSuccessfulConnection) { - lastConnectionView.setText(timeAgo + "\n" + R.string.combo_connect_attempt_failed); + lastConnectionView.setText(timeAgo + "\n" + getString(R.string.combo_connect_attempt_failed)); lastConnectionView.setTextColor(Color.YELLOW); } else { lastConnectionView.setText(timeAgo);