Skip to content

Commit

Permalink
Updated resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed May 1, 2018
1 parent b152f06 commit 1f3332b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion Diaguard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 27
versionCode 25
versionName "2.4.2.094156800"
versionName "2.4.3"
vectorDrawables.useSupportLibrary = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import static com.faltenreich.diaguard.DiaguardApplication.getContext;

@SuppressWarnings("WeakerAccess")
public class PreferenceHelper {

private static final String TAG = PreferenceHelper.class.getSimpleName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@

public class CalculatorMissingFragment extends DialogFragment {

// TODO: Update url when multi-language blog post is out
private static final String URL = "https://diaguard.wordpress.com/2018/04/26/diaguard-ohne-bolusrechner";
private static final String URL = "https://diaguard.wordpress.com/2018/05/01/diaguard-2-4-3";

@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
return new AlertDialog.Builder(getContext())
Dialog dialog = new AlertDialog.Builder(getContext())
.setTitle(R.string.calculator_missing)
.setMessage(R.string.calculator_missing_desc)
.setNegativeButton(R.string.calculator_more_info, new DialogInterface.OnClickListener() {
Expand All @@ -35,5 +34,7 @@ public void onClick(DialogInterface dialog, int which) {
}
})
.create();
dialog.setCanceledOnTouchOutside(false);
return dialog;
}
}
4 changes: 4 additions & 0 deletions Diaguard/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,8 @@
<string name="unit_factor_carbohydrates_unit">KE-Faktor</string>
<string name="unit_factor_bread_unit">BE-Faktor</string>

<string name="calculator_missing">Wo ist der Bolusrechner?</string>
<string name="calculator_missing_desc">Der Bolusrechner musste aufgrund des Medizinproduktegesetzes entfernt werden.</string>
<string name="calculator_more_info">Mehr dazu</string>

</resources>
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 @@ -513,7 +513,7 @@
</string-array>

<string name="calculator_missing">Where is the calculator?</string>
<string name="calculator_missing_desc">The calculator had to be removed by reason of the law.</string>
<string name="calculator_missing_desc">The calculator had to be removed due to legal reasons concerning medical products.</string>
<string name="calculator_more_info">More info</string>

</resources>

0 comments on commit 1f3332b

Please sign in to comment.