NewCarbsDialog: use correct 'constraint applied' messages.

(cherry picked from commit a9e290e)
This commit is contained in:
Johannes Mockenhaupt 2018-04-13 23:35:17 +02:00
parent 10604299e7
commit 5d66ecc767
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -97,12 +97,12 @@ public class NewCarbsDialog extends DialogFragment implements OnClickListener, C
int time = editTime.getValue().intValue();
if (time > 12 * 60 || time < -12 * 60) {
editTime.setValue(0d);
ToastUtils.showToastInUiThread(MainApp.instance().getApplicationContext(), MainApp.gs(R.string.carbsconstraintapplied));
ToastUtils.showToastInUiThread(MainApp.instance().getApplicationContext(), MainApp.gs(R.string.constraintapllied));
}
Double duration = editDuration.getValue();
if (duration > 10) {
editDuration.setValue(0d);
ToastUtils.showToastInUiThread(MainApp.instance().getApplicationContext(), MainApp.gs(R.string.carbsconstraintapplied));
ToastUtils.showToastInUiThread(MainApp.instance().getApplicationContext(), MainApp.gs(R.string.constraintapllied));
}
int carbs = editCarbs.getValue().intValue();
if (carbs > maxCarbs) {