Skip to content

Commit

Permalink
welcome: default fallback language english (fixes #3288) (#3293)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Mar 21, 2024
1 parent d0b7df5 commit f7c35dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit f7c35dc

Please sign in to comment.