Harden geofence automation and home editing
This commit is contained in:
@@ -277,6 +277,11 @@ class _HomesScreenState extends ConsumerState<HomesScreen>
|
||||
final shouldWatch = ref
|
||||
.read(homesProvider)
|
||||
.any((home) => home.hasCoordinates);
|
||||
if (shouldWatch && _isWatchingLocation) {
|
||||
await _userLocationNotifier.ensureWatchingStarted();
|
||||
return;
|
||||
}
|
||||
|
||||
if (shouldWatch == _isWatchingLocation) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user