fix: per-device location sharing (#2010)

This commit is contained in:
James Rich 2025-06-03 16:04:24 -05:00 committed by GitHub
parent ff5cc55a60
commit 868d705b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 69 additions and 100 deletions

View file

@ -270,14 +270,6 @@ class MainActivity : AppCompatActivity(), Logging {
// Called when we gain/lose a connection to our mesh radio
private fun onMeshConnectionChanged(newConnection: MeshService.ConnectionState) {
if (newConnection == MeshService.ConnectionState.CONNECTED) {
serviceRepository.meshService?.let { service ->
// if provideLocation enabled: Start providing location (from phone GPS) to mesh
if (model.provideLocation.value == true) {
service.startProvideLocation()
} else {
service.stopProvideLocation()
}
}
checkNotificationPermissions()
}
}