Skip to content

Commit 0833c91

Browse files
authored
Merge pull request #661 from Futsch1/arabic
Arabic
2 parents 9cda74a + aa20d9f commit 0833c91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+97
-14
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ android {
2323
minSdk = 28
2424
multiDexEnabled = true
2525
targetSdk = 36
26-
versionCode = 119
27-
versionName = "1.17.2"
26+
versionCode = 120
27+
versionName = "1.17.3"
2828
base.archivesName = "MedTimer"
2929
// Use this deprecated setting because Android Lint will not pick up androidResources.localeFilters correctly
3030
@Suppress("DEPRECATION")
31-
resConfigs("en,de,es,fr,it,nl,pl,pt,ru,sv,ta,tr,uk,zh-rCN")
31+
resConfigs("en,ar,de,es,fr,it,nl,pl,pt,ru,sv,ta,tr,uk,zh-rCN")
3232

3333
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3434
testInstrumentationRunnerArguments.putAll(
@@ -62,7 +62,7 @@ android {
6262
@Suppress("UnstableApiUsage")
6363
androidResources {
6464
generateLocaleConfig = true
65-
localeFilters += listOf("en", "de", "es", "fr", "it", "nl", "pl", "pt-rBR", "ru", "sv", "ta", "tr", "uk", "zh-rCN")
65+
localeFilters += listOf("en", "ar", "de", "es", "fr", "it", "nl", "pl", "pt-rBR", "ru", "sv", "ta", "tr", "uk", "zh-rCN")
6666
}
6767
testOptions {
6868
unitTests {

app/src/main/java/com/futsch1/medtimer/MainActivity.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,12 @@ protected void onNewIntent(Intent intent) {
155155

156156
@Override
157157
public boolean onSupportNavigateUp() {
158-
NavController navController = findNavController(this, R.id.navHost);
159-
return NavigationUI.navigateUp(navController, appBarConfiguration)
160-
|| super.onSupportNavigateUp();
158+
try {
159+
NavController navController = findNavController(this, R.id.navHost);
160+
return NavigationUI.navigateUp(navController, appBarConfiguration)
161+
|| super.onSupportNavigateUp();
162+
} catch (IllegalStateException e) {
163+
return false;
164+
}
161165
}
162166
}

app/src/main/java/com/futsch1/medtimer/OptionsMenu.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ private static void enableOptionalIcons(@NonNull Menu menu) {
105105
private void setupSettings() {
106106
MenuItem item = menu.findItem(R.id.settings);
107107
item.setOnMenuItemClickListener(menuItem -> {
108-
Navigation.findNavController(view).navigate(R.id.action_global_preferencesFragment);
109-
return true;
108+
try {
109+
Navigation.findNavController(view).navigate(R.id.action_global_preferencesFragment);
110+
return true;
111+
} catch (IllegalStateException e) {
112+
return false;
113+
}
110114
});
111115
}
112116

92.3 KB

app/src/main/res/layout/fragment_advanced_reminder_settings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@
258258
android:id="@+id/addLinkedReminder"
259259
android:layout_width="wrap_content"
260260
android:layout_height="wrap_content"
261-
android:layout_marginEnd="7dp"
261+
android:layout_marginEnd="8dp"
262+
android:layout_marginBottom="8dp"
262263
android:clickable="true"
263264
android:text="@string/add_linked_reminder"
264265
app:icon="@android:drawable/ic_menu_add"

copyIntroDrawables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ do
99
cp -f -r ./fastlane/metadata/android/en-US/images/phoneScreenshots/${screenshots[$i]}.png ./app/src/main/res/drawable/intro_${names[$i]}.png
1010
done
1111

12-
locales=('es-ES' 'de-DE' 'fr-FR' 'it-IT' 'nl-NL' 'pl-PL' 'pt-BR' 'ru-RU' 'sv-SV' 'ta-IN' 'tr-TR' 'zh-CN')
12+
locales=('es-ES' 'ar' 'de-DE' 'fr-FR' 'it-IT' 'nl-NL' 'pl-PL' 'pt-BR' 'ru-RU' 'sv-SE' 'ta-IN' 'tr-TR' 'uk' 'zh-CN')
1313

1414
for l in "${locales[@]}"
1515
do
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
video.txt:1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MedTimer
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Med reminders and history with full offline privacy
2+
3+
Stay In Control of Your Medications with MedTimer
4+
5+
MedTimer is an open-source medication reminder app designed to help you manage your medications and pills effectively and with full control of your sensitive data.
6+
7+
Flexible & Personalized Reminders:
8+
9+
- Manage unlimited medications with customizable reminders per medication (including simple defaults
10+
for daily reminders).
11+
- Create flexible reminders with breaks and specific days (e.g. for birth control pills).
12+
- Weekend mode: Delay reminders to a defined time on chosen days.
13+
- Snooze notifications for later reminders or be reminded repeatedly.
14+
- Add extra doses on the fly.
15+
- Create interval based reminders or reminders following each other in intervals.
16+
17+
Simple & Secure Data Management:
18+
19+
- Confirm or dismiss reminders to record medication adherence accurately.
20+
- Get an overview of past doses in a chart and a tabular view.
21+
- Export your medication history as a CSV file for easy record-keeping or sharing with healthcare professionals.
22+
- Backup and restore your medication list as JSON file.
23+
- Medication stock tracking and out of stock reminders.
24+
- Tag and filter your medication.
25+
26+
Privacy & Offline Accessibility:
27+
28+
- All data is stored securely on your device, ensuring complete privacy and offline accessibility.
29+
- No internet connection required – your medication reminders are always available.
30+
31+
MedTimer is a free app without adds.
32+
33+
See the project page on GitHub: https://github.com/Futsch1/medTimer
34+
35+
Feature graphic was created with https://hotpot.ai
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Med reminders and history with full offline privacy
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MedTimer
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Med reminders and history with full offline privacy
2+
3+
Stay In Control of Your Medications with MedTimer
4+
5+
MedTimer is an open-source medication reminder app designed to help you manage your medications and pills effectively and with full control of your sensitive data.
6+
7+
Flexible & Personalized Reminders:
8+
9+
- Manage unlimited medications with customizable reminders per medication (including simple defaults
10+
for daily reminders).
11+
- Create flexible reminders with breaks and specific days (e.g. for birth control pills).
12+
- Weekend mode: Delay reminders to a defined time on chosen days.
13+
- Snooze notifications for later reminders or be reminded repeatedly.
14+
- Add extra doses on the fly.
15+
- Create interval based reminders or reminders following each other in intervals.
16+
17+
Simple & Secure Data Management:
18+
19+
- Confirm or dismiss reminders to record medication adherence accurately.
20+
- Get an overview of past doses in a chart and a tabular view.
21+
- Export your medication history as a CSV file for easy record-keeping or sharing with healthcare professionals.
22+
- Backup and restore your medication list as JSON file.
23+
- Medication stock tracking and out of stock reminders.
24+
- Tag and filter your medication.
25+
26+
Privacy & Offline Accessibility:
27+
28+
- All data is stored securely on your device, ensuring complete privacy and offline accessibility.
29+
- No internet connection required – your medication reminders are always available.
30+
31+
MedTimer is a free app without adds.
32+
33+
See the project page on GitHub: https://github.com/Futsch1/medTimer
34+
35+
Feature graphic was created with https://hotpot.ai
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Med reminders and history with full offline privacy
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MedTimer

screenshots.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function stop_clean_status_bar {
2020
adb shell am broadcast -a com.android.systemui.demo -e command exit
2121
}
2222

23-
locales=('de-DE' 'en-US' 'es-ES' 'fr-FR' 'it-IT' 'nl-NL' 'pl-PL' 'pt-BR' 'ru-RU' 'sv-SV' 'ta-IN' 'tr-TR' 'uk-UK' 'zh-CN')
24-
#locales=('en-US')
23+
locales=('en-US' 'ar-AE' 'de-DE' 'es-ES' 'fr-FR' 'it-IT' 'nl-NL' 'pl-PL' 'pt-BR' 'ru-RU' 'sv-SE' 'ta-IN' 'tr-TR' 'uk' 'zh-CN')
24+
#locales=('ar')
2525
tests_apk_path="app/build/outputs/apk/debug/MedTimer-debug.apk"
2626
app_apk_path="app/build/outputs/apk/androidTest/debug/MedTimer-debug-androidTest.apk"
2727

0 commit comments

Comments
 (0)