move location service to repository

This commit is contained in:
andrekir 2022-05-20 09:13:59 -03:00
parent d50e9e1644
commit 6bda993851
8 changed files with 160 additions and 222 deletions

View file

@ -826,7 +826,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
debug("User changed location tracking to $isChecked")
model.provideLocation.value = isChecked
checkLocationEnabled(getString(R.string.location_disabled))
model.meshService?.setupProvideLocation()
model.meshService?.startProvideLocation()
}
} else {
model.provideLocation.value = isChecked