mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: Move "provide location" preference to DataStore (#1877)
This commit is contained in:
parent
de49f6a48b
commit
38b9515fca
7 changed files with 83 additions and 37 deletions
|
|
@ -276,6 +276,8 @@ class MainActivity : AppCompatActivity(), Logging {
|
|||
// if provideLocation enabled: Start providing location (from phone GPS) to mesh
|
||||
if (model.provideLocation.value == true) {
|
||||
service.startProvideLocation()
|
||||
} else {
|
||||
service.stopProvideLocation()
|
||||
}
|
||||
}
|
||||
checkNotificationPermissions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue