mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
repo(release): merge changes from 2.7.0 to main (#3070)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> Co-authored-by: DaneEvans <dane@goneepic.com>
This commit is contained in:
parent
94f30ef540
commit
3c726457eb
6 changed files with 84 additions and 79 deletions
|
|
@ -420,7 +420,7 @@ private fun VersionChecks(viewModel: UIViewModel) {
|
|||
LaunchedEffect(connectionState, myNodeInfo) {
|
||||
if (connectionState == ConnectionState.CONNECTED) {
|
||||
myNodeInfo?.let { info ->
|
||||
val isOld = info.minAppVersion > BuildConfig.VERSION_CODE
|
||||
val isOld = info.minAppVersion > BuildConfig.VERSION_CODE && BuildConfig.DEBUG.not()
|
||||
if (isOld) {
|
||||
viewModel.showAlert(
|
||||
context.getString(R.string.app_too_old),
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ object LanguageUtils : Logging {
|
|||
context.resources.getXml(R.xml.locales_config).use {
|
||||
while (it.eventType != XmlPullParser.END_DOCUMENT) {
|
||||
if (it.eventType == XmlPullParser.START_TAG && it.name == "locale") {
|
||||
languageTags += it.getAttributeValue(0)
|
||||
it.getAttributeValue(0)?.let { tag -> languageTags += tag }
|
||||
}
|
||||
it.next()
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ object LanguageUtils : Logging {
|
|||
errormsg("Error parsing locale_config.xml ${e.message}")
|
||||
}
|
||||
return languageTags.associateBy { tag ->
|
||||
val loc = Locale(tag)
|
||||
val loc = Locale.forLanguageTag(tag)
|
||||
when (tag) {
|
||||
SYSTEM_DEFAULT -> context.getString(R.string.preferences_system_default)
|
||||
"fr-HT" -> context.getString(R.string.fr_HT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue