diff --git a/app/build.gradle b/app/build.gradle index e27c42ea6a..7de6c3ed13 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1440 - versionName "0.14.40" + versionCode 1441 + versionName "0.14.41" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/sync/SyncActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/sync/SyncActivity.kt index cace86b90d..f826e3c777 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/sync/SyncActivity.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/sync/SyncActivity.kt @@ -139,7 +139,7 @@ abstract class SyncActivity : ProcessUserDataActivity(), SyncListener, CheckVers private lateinit var defaultPref: SharedPreferences lateinit var imgBtnSetting: ImageButton lateinit var service: Service - private lateinit var fallbackLanguage: String + private var fallbackLanguage: String = "en" override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) settings = getSharedPreferences(PREFS_NAME, MODE_PRIVATE) @@ -480,7 +480,6 @@ abstract class SyncActivity : ProcessUserDataActivity(), SyncListener, CheckVers pref.edit().putString("app_language", systemLanguage).apply() index = languageKeyList.indexOf(systemLanguage) } else { - fallbackLanguage = "en" pref.edit().putString("app_language", fallbackLanguage).apply() index = languageKeyList.indexOf(fallbackLanguage) }