Skip to content

Commit 8ce2941

Browse files
committed
rename variable
1 parent c3f3466 commit 8ce2941

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/kotlin/com/vrem/wifianalyzer/wifi/channelavailable/ChannelAvailableFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ChannelAvailableFragment : Fragment() {
4444
private fun update() {
4545
val settings = MainContext.INSTANCE.settings
4646
val countryCode = settings.countryCode()
47-
val languageLocale = settings.appLocale()
47+
val appLocale = settings.appLocale()
4848
binding.apply {
4949
val textViews =
5050
listOf(
@@ -61,7 +61,7 @@ class ChannelAvailableFragment : Fragment() {
6161
Triple(channelsAvailable6GHz320MHz, WiFiBand.GHZ6, WiFiWidth.MHZ_320),
6262
)
6363
channelsAvailableCountryCode.text = countryCode
64-
channelsAvailableCountryName.text = WiFiChannelCountry.find(countryCode).countryName(languageLocale)
64+
channelsAvailableCountryName.text = WiFiChannelCountry.find(countryCode).countryName(appLocale)
6565
textViews.forEach { (textView, wiFiBand, wiFiWidth) ->
6666
textView.text =
6767
wiFiBand.wiFiChannels.availableChannels(wiFiWidth, wiFiBand, countryCode).joinToString(", ")

app/src/test/kotlin/com/vrem/util/LocaleUtilsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ class LocaleUtilsTest {
132132
}
133133

134134
@Test
135-
fun currentCurrentCountryCode() {
135+
fun currentCountryCodeReturnsDefault() {
136136
assertThat(currentCountryCode()).isEqualTo(Locale.getDefault().country)
137137
}
138138

139139
@Test
140-
fun currentCurrentLanguageTag() {
140+
fun currentLanguageTagReturnsDefault() {
141141
assertThat(currentLanguageTag()).isEqualTo(toLanguageTag(Locale.getDefault()))
142142
}
143143
}

0 commit comments

Comments
 (0)