Try to obtain country code on old devices as well

This commit is contained in:
Mygod
2022-07-12 21:13:51 -04:00
parent 80f3afcb73
commit bc1b4d41ed
3 changed files with 8 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
}.filterNotNull()
if (list.isNotEmpty()) result.append(parent.getText(R.string.tethering_manage_wifi_supported_channels)
.format(locale, list.joinToString("; ")))
if (Build.VERSION.SDK_INT >= 33) capability.countryCode?.let {
capability.countryCode?.let {
result.append(parent.getText(R.string.tethering_manage_wifi_country_code).format(locale, it))
}
}