sforkowany z mirror/meshtastic-android
fix: default max_channels to 8
rodzic
8be39466d6
commit
378b539481
|
@ -324,7 +324,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||||
|
|
||||||
model.channels.asLiveData().observe(viewLifecycleOwner) {
|
model.channels.asLiveData().observe(viewLifecycleOwner) {
|
||||||
if (!model.isConnected()) it.protobuf.let { ch ->
|
if (!model.isConnected()) it.protobuf.let { ch ->
|
||||||
val maxChannels = model.myNodeInfo.value?.maxChannels
|
val maxChannels = model.myNodeInfo.value?.maxChannels ?: "8"
|
||||||
if (!ch.hasLoraConfig() && ch.settingsCount > 0)
|
if (!ch.hasLoraConfig() && ch.settingsCount > 0)
|
||||||
binding.scanStatusText.text = "Channels (${ch.settingsCount} / $maxChannels)"
|
binding.scanStatusText.text = "Channels (${ch.settingsCount} / $maxChannels)"
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue