NewCarbsDialog: use correct 'constraint applied' messages.
(cherry picked from commit a9e290e)
This commit is contained in:
parent
10604299e7
commit
5d66ecc767
1 changed files with 2 additions and 2 deletions
|
@ -97,12 +97,12 @@ public class NewCarbsDialog extends DialogFragment implements OnClickListener, C
|
||||||
int time = editTime.getValue().intValue();
|
int time = editTime.getValue().intValue();
|
||||||
if (time > 12 * 60 || time < -12 * 60) {
|
if (time > 12 * 60 || time < -12 * 60) {
|
||||||
editTime.setValue(0d);
|
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();
|
Double duration = editDuration.getValue();
|
||||||
if (duration > 10) {
|
if (duration > 10) {
|
||||||
editDuration.setValue(0d);
|
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();
|
int carbs = editCarbs.getValue().intValue();
|
||||||
if (carbs > maxCarbs) {
|
if (carbs > maxCarbs) {
|
||||||
|
|
Loading…
Reference in a new issue