From b62a80d361386d78ca34074059c418eed8400448 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Tue, 10 Sep 2024 10:29:04 +0500 Subject: [PATCH] Hotfix: Fix crash on startup --- app/build.gradle | 4 ++-- .../java/com/swatian/nexnotes/activities/BaseActivity.java | 2 +- metadata/en-US/changelogs/{15.txt => 16.txt} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename metadata/en-US/changelogs/{15.txt => 16.txt} (96%) diff --git a/app/build.gradle b/app/build.gradle index 6418629..7f6a1ae 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.swatian.nexnotes" minSdk 27 targetSdk 34 - versionCode 15 - versionName "1.5" + versionCode 16 + versionName "1.6" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/swatian/nexnotes/activities/BaseActivity.java b/app/src/main/java/com/swatian/nexnotes/activities/BaseActivity.java index a569627..9b53434 100644 --- a/app/src/main/java/com/swatian/nexnotes/activities/BaseActivity.java +++ b/app/src/main/java/com/swatian/nexnotes/activities/BaseActivity.java @@ -31,7 +31,7 @@ public void onCreate(Bundle savedInstanceState) { if (locale[0].equals("0")) { Utils.setAppLocale( - ctx.getResources().getConfiguration().getLocales().get(1).getLanguage()); + ctx.getResources().getConfiguration().getLocales().get(0).getLanguage()); } else { Utils.setAppLocale(locale[1]); } diff --git a/metadata/en-US/changelogs/15.txt b/metadata/en-US/changelogs/16.txt similarity index 96% rename from metadata/en-US/changelogs/15.txt rename to metadata/en-US/changelogs/16.txt index eb0abc6..5a80f54 100644 --- a/metadata/en-US/changelogs/15.txt +++ b/metadata/en-US/changelogs/16.txt @@ -1,4 +1,4 @@ -1.5 +1.6 - New languages with translation updates - Other fixes