From 978332f7f8731269a2d3e7502d616c3778a83e01 Mon Sep 17 00:00:00 2001 From: Jacob Michalskie Date: Tue, 9 Jan 2024 20:15:15 +0100 Subject: [PATCH] Fix broken app sync to the watch --- lib/domain/timeline/watch_apps_syncer.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/domain/timeline/watch_apps_syncer.dart b/lib/domain/timeline/watch_apps_syncer.dart index c57ed0c0..a00882e0 100644 --- a/lib/domain/timeline/watch_apps_syncer.dart +++ b/lib/domain/timeline/watch_apps_syncer.dart @@ -20,7 +20,7 @@ import '../logging.dart'; class WatchAppsSyncer { final AppDao appDao; final AppInstallControl appInstallControl; - final WatchConnectionState connectionStateProvider; + final ConnectionCallbacksStateNotifier connectionStateProvider; final Future preferences; WatchAppsSyncer(this.appDao, this.appInstallControl, @@ -56,7 +56,7 @@ class WatchAppsSyncer { } Future _performSync() async { - final connectedWatch = connectionStateProvider.currentConnectedWatch; + final connectedWatch = connectionStateProvider.state.currentConnectedWatch; if (connectedWatch == null) { return statusWatchDisconnected; } @@ -149,7 +149,7 @@ final AutoDisposeProvider watchAppSyncerProvider = Provider.autoDispose((ref) { final appDao = ref.watch(appDaoProvider); final appInstallControl = ref.watch(appInstallControlProvider); - final connectionState = ref.watch(connectionStateProvider); + final connectionState = ref.watch(connectionStateProvider.notifier); final preferences = ref.read(preferencesProvider.future); return WatchAppsSyncer(