From 1d80801670e6f2f84a93002c3809bd5129914c53 Mon Sep 17 00:00:00 2001 From: lubenard Date: Wed, 6 Apr 2022 22:49:37 +0200 Subject: [PATCH] Added default behavior for language, definitely fixing crash --- app/src/main/java/com/lubenard/oring_reminder/utils/Utils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/lubenard/oring_reminder/utils/Utils.java b/app/src/main/java/com/lubenard/oring_reminder/utils/Utils.java index 7083095..90da24e 100644 --- a/app/src/main/java/com/lubenard/oring_reminder/utils/Utils.java +++ b/app/src/main/java/com/lubenard/oring_reminder/utils/Utils.java @@ -66,6 +66,7 @@ public static void applyLanguage(Context context, String newValue) { setAppLocale(context,"de"); break; case "system": + default: setAppLocale(context, Resources.getSystem().getConfiguration().locale.getLanguage()); break; }