mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
update location_share default to LocUnset
This commit is contained in:
parent
852cd2ddc7
commit
c483a488bb
1 changed files with 2 additions and 1 deletions
|
|
@ -127,6 +127,7 @@ class UIViewModel(private val app: Application) : AndroidViewModel(app), Logging
|
|||
var locationShare: Boolean?
|
||||
get() {
|
||||
return radioConfig.value?.preferences?.locationShare == RadioConfigProtos.LocationSharing.LocEnabled
|
||||
|| radioConfig.value?.preferences?.locationShare == RadioConfigProtos.LocationSharing.LocUnset
|
||||
}
|
||||
set(value) {
|
||||
val config = radioConfig.value
|
||||
|
|
@ -134,7 +135,7 @@ class UIViewModel(private val app: Application) : AndroidViewModel(app), Logging
|
|||
val builder = config.toBuilder()
|
||||
if (value == true) {
|
||||
builder.preferencesBuilder.locationShare =
|
||||
RadioConfigProtos.LocationSharing.LocEnabled
|
||||
RadioConfigProtos.LocationSharing.LocUnset
|
||||
} else {
|
||||
builder.preferencesBuilder.locationShare =
|
||||
RadioConfigProtos.LocationSharing.LocDisabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue