From b852ae242fa7eb99f65b053d39f8e6ed7fc0ea71 Mon Sep 17 00:00:00 2001
From: Adam Guidarini <45023561+AdamGuidarini@users.noreply.github.com>
Date: Fri, 14 Jun 2024 19:31:53 -0400
Subject: [PATCH] Updated translations, fixed crash
---
.../java/projects/medicationtracker/Dialogs/DoseInfoDialog.java | 2 +-
app/src/main/res/values-de/strings.xml | 2 +-
app/src/main/res/values-es/strings.xml | 2 +-
app/src/main/res/values/strings.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/src/main/java/projects/medicationtracker/Dialogs/DoseInfoDialog.java b/app/src/main/java/projects/medicationtracker/Dialogs/DoseInfoDialog.java
index 3126b98d..004f101f 100644
--- a/app/src/main/java/projects/medicationtracker/Dialogs/DoseInfoDialog.java
+++ b/app/src/main/java/projects/medicationtracker/Dialogs/DoseInfoDialog.java
@@ -83,7 +83,7 @@ public Dialog onCreateDialog(Bundle savedInstances) {
infoDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false);
- thisDose = nativeDb.getDoseById(doseId);
+ thisDose = doseId != -1 ? nativeDb.getDoseById(doseId) : new Dose();
timeTaken = infoDialog.findViewById(R.id.dose_time_taken);
dateTaken = infoDialog.findViewById(R.id.dose_date_taken);
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 0447d565..6bed2176 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -102,7 +102,7 @@
Dosierung
Häufigkeit
Eingenommen jeden
- Einheiten
+ Dosierungseinheit
Eingenommen
Häufigkeit
Mehrmals pro Tag
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 1ed4026c..57cdb3d1 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -100,7 +100,7 @@
Dosis
Frecuencia
Tomado cada
- Unidades
+ Unidad de Dosis
Tomado
Frecuencia
Varias veces por día
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3ccb7df1..ee39fc22 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -100,7 +100,7 @@
Dosage
Frequency
Taken Every
- Units
+ Dosage Unit
Taken
Frequency
Multiple Times per Day