refactor: Move "provide location" preference to DataStore (#1877)

This commit is contained in:
James Rich 2025-05-19 16:23:29 -05:00 committed by GitHub
parent de49f6a48b
commit 38b9515fca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 83 additions and 37 deletions

View file

@ -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()