Skip to content

Commit

Permalink
Merge pull request #244 from hellcp/riverpod-migrate
Browse files Browse the repository at this point in the history
Fix broken app sync to the watch
  • Loading branch information
crc-32 authored Jan 10, 2024
2 parents a615162 + 978332f commit 5fd452b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/domain/timeline/watch_apps_syncer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import '../logging.dart';
class WatchAppsSyncer {
final AppDao appDao;
final AppInstallControl appInstallControl;
final WatchConnectionState connectionStateProvider;
final ConnectionCallbacksStateNotifier connectionStateProvider;
final Future<Preferences> preferences;

WatchAppsSyncer(this.appDao, this.appInstallControl,
Expand Down Expand Up @@ -56,7 +56,7 @@ class WatchAppsSyncer {
}

Future<int?> _performSync() async {
final connectedWatch = connectionStateProvider.currentConnectedWatch;
final connectedWatch = connectionStateProvider.state.currentConnectedWatch;
if (connectedWatch == null) {
return statusWatchDisconnected;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ final AutoDisposeProvider<WatchAppsSyncer> watchAppSyncerProvider =
Provider.autoDispose<WatchAppsSyncer>((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(
Expand Down

0 comments on commit 5fd452b

Please sign in to comment.