mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ignore onItemSelected without changes
This commit is contained in:
parent
bb698e14d1
commit
d9691a7fbd
1 changed files with 2 additions and 1 deletions
|
|
@ -221,7 +221,8 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
val item = parent.getItemAtPosition(position) as String?
|
||||
val asProto = item!!.let { ConfigProtos.Config.LoRaConfig.RegionCode.valueOf(it) }
|
||||
exceptionToSnackbar(requireView()) {
|
||||
model.region = asProto
|
||||
debug("regionSpinner onItemSelected $asProto")
|
||||
if (asProto != model.region) model.region = asProto
|
||||
}
|
||||
updateNodeInfo() // We might have just changed Unset to set
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue