From 95ffb03a266f19b99212d84763b5590882a1d313 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 6 Nov 2016 12:10:24 +0100 Subject: [PATCH] fix resources crash --- .../plugins/Actions/dialogs/NewTempBasalDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/NewTempBasalDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/NewTempBasalDialog.java index e0dae0bcd8..f95bdc41b4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/NewTempBasalDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/NewTempBasalDialog.java @@ -151,9 +151,9 @@ public class NewTempBasalDialog extends DialogFragment implements View.OnClickLi } if (!result.success) { AlertDialog.Builder builder = new AlertDialog.Builder(context); - builder.setTitle(getContext().getString(R.string.treatmentdeliveryerror)); + builder.setTitle(MainApp.sResources.getString(R.string.treatmentdeliveryerror)); builder.setMessage(result.comment); - builder.setPositiveButton(getContext().getString(R.string.ok), null); + builder.setPositiveButton(MainApp.sResources.getString(R.string.ok), null); builder.show(); } }