Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Codel1417/tail_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 28, 2024
2 parents bf056d0 + 370f32c commit 3d0bb53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Backend/wear_bridge.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';

import 'package:cross_platform/cross_platform.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_wear_os_connectivity/flutter_wear_os_connectivity.dart';
import 'package:logging/logging.dart';
Expand All @@ -23,7 +24,7 @@ StreamSubscription<CapabilityInfo>? capabilityChangedStreamSubscription;
@Riverpod(keepAlive: true)
Future<void> initWear(InitWearRef ref) async {
try {
if (!await _flutterWearOsConnectivity.isSupported()) {
if (!Platform.isAndroid || !await _flutterWearOsConnectivity.isSupported()) {
return;
}
_flutterWearOsConnectivity.configureWearableAPI();
Expand Down

0 comments on commit 3d0bb53

Please sign in to comment.