Showing
2 changed files
with
4 additions
and
4 deletions
| @@ -145,7 +145,7 @@ class CustomWatchThemePreviewController extends GetxController { | @@ -145,7 +145,7 @@ class CustomWatchThemePreviewController extends GetxController { | ||
| 145 | } catch (_) { | 145 | } catch (_) { |
| 146 | device = null; | 146 | device = null; |
| 147 | } | 147 | } |
| 148 | - if (device == null) { | 148 | + if (device?.isConnected != true || device?.isWatchAppInstalled != true) { |
| 149 | await Get.dialog<void>( | 149 | await Get.dialog<void>( |
| 150 | const WatchThemeNoWatchDialog(), | 150 | const WatchThemeNoWatchDialog(), |
| 151 | barrierColor: const Color(0xB3000000), | 151 | barrierColor: const Color(0xB3000000), |
| @@ -167,7 +167,7 @@ class CustomWatchThemePreviewController extends GetxController { | @@ -167,7 +167,7 @@ class CustomWatchThemePreviewController extends GetxController { | ||
| 167 | } catch (_) { | 167 | } catch (_) { |
| 168 | device = null; | 168 | device = null; |
| 169 | } | 169 | } |
| 170 | - if (device == null) { | 170 | + if (device?.isConnected != true || device?.isWatchAppInstalled != true) { |
| 171 | await Get.dialog<void>( | 171 | await Get.dialog<void>( |
| 172 | const WatchThemeNoWatchDialog(), | 172 | const WatchThemeNoWatchDialog(), |
| 173 | barrierColor: const Color(0xB3000000), | 173 | barrierColor: const Color(0xB3000000), |
| @@ -116,7 +116,7 @@ class WatchThemePreviewController extends GetxController { | @@ -116,7 +116,7 @@ class WatchThemePreviewController extends GetxController { | ||
| 116 | } catch (_) { | 116 | } catch (_) { |
| 117 | device = null; | 117 | device = null; |
| 118 | } | 118 | } |
| 119 | - if (device == null) { | 119 | + if (device?.isConnected != true || device?.isWatchAppInstalled != true) { |
| 120 | await Get.dialog<void>( | 120 | await Get.dialog<void>( |
| 121 | const WatchThemeNoWatchDialog(), | 121 | const WatchThemeNoWatchDialog(), |
| 122 | barrierColor: const Color(0xB3000000), | 122 | barrierColor: const Color(0xB3000000), |
| @@ -139,7 +139,7 @@ class WatchThemePreviewController extends GetxController { | @@ -139,7 +139,7 @@ class WatchThemePreviewController extends GetxController { | ||
| 139 | } catch (_) { | 139 | } catch (_) { |
| 140 | device = null; | 140 | device = null; |
| 141 | } | 141 | } |
| 142 | - if (device == null) { | 142 | + if (device?.isConnected != true || device?.isWatchAppInstalled != true) { |
| 143 | await Get.dialog<void>( | 143 | await Get.dialog<void>( |
| 144 | const WatchThemeNoWatchDialog(), | 144 | const WatchThemeNoWatchDialog(), |
| 145 | barrierColor: const Color(0xB3000000), | 145 | barrierColor: const Color(0xB3000000), |
-
Please register or login to post a comment