Skip to content

Commit

Permalink
Fixed parsing of meal input in calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed Jan 7, 2017
1 parent f058ddd commit bae627a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Diaguard/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.faltenreich.diaguard"
android:versionCode="12"
android:versionCode="13"
android:versionName="@string/app_version">

<uses-permission android:name="android.permission.INTERNET" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ private void storeValues(float mgDl, float carbohydrates, float bolus, float cor

if (carbohydrates > 0) {
Meal meal = new Meal();
meal.setCarbohydrates(PreferenceHelper.getInstance().formatCustomToDefaultUnit(
Measurement.Category.MEAL,
foodInputView.getInputCarbohydrates()));
meal.setCarbohydrates(foodInputView.getInputCarbohydrates());
meal.setEntry(entry);
MeasurementDao.getInstance(Meal.class).createOrUpdate(meal);

Expand Down
2 changes: 1 addition & 1 deletion Diaguard/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<string name="app_homepage_short" translatable="false">diaguard.wordpress.com</string>
<string name="app_mail" translatable="false">mailto:diaguard.de@gmail.com</string>
<string name="app_mail_short" translatable="false">diaguard.de@gmail.com</string>
<string name="app_version" translatable="false">2.1</string>
<string name="app_version" translatable="false">2.1.1</string>

<!-- PREFERENCES -->
<string name="pref_factor" translatable="false">pref_factor</string>
Expand Down

0 comments on commit bae627a

Please sign in to comment.