Skip to content

Commit 9b73f99

Browse files
remove duplicate notify calls on wearable disconnect
1 parent 02b544b commit 9b73f99

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

open_wearable/lib/view_models/sensor_recorder_provider.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class SensorRecorderProvider with ChangeNotifier {
7272

7373
wearable.addDisconnectListener(() {
7474
removeWearable(wearable);
75-
notifyListeners();
7675
});
7776

7877
if (wearable.hasCapability<SensorManager>()) {

open_wearable/lib/view_models/wearables_provider.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ class WearablesProvider with ChangeNotifier {
252252
// Disconnect listener (sync)
253253
wearable.addDisconnectListener(() {
254254
removeWearable(wearable);
255-
notifyListeners();
256255
});
257256

258257
// Notify ASAP so UI updates with the newly connected device

0 commit comments

Comments
 (0)