fix resources crash

This commit is contained in:
Milos Kozak 2016-11-06 12:10:24 +01:00
parent 65b8ca00db
commit 95ffb03a26

View file

@ -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();
}
}