fix: suppress position sync when app backgrounded

This commit is contained in:
edde746
2026-04-16 15:43:08 +02:00
parent 34815f22ee
commit f055759c7a
3 changed files with 25 additions and 1 deletions
@@ -402,6 +402,11 @@ class WatchTogetherProvider with ChangeNotifier {
appLogger.d('WatchTogether: Player detached from sync manager');
}
/// Suppress position sync while the app is backgrounded.
void setBackgrounded(bool value) {
_syncManager?.setBackgrounded(value);
}
/// Set up listeners for peer service events
void _setupPeerServiceListeners() {
_peerConnectedSubscription = _peerService!.onPeerConnected.listen((peerId) {