|
...
|
...
|
@@ -35,8 +35,6 @@ class CustomWatchThemePreviewController extends GetxController { |
|
|
|
final friendThemeItem = Rx<WatchThemeItem?>(null);
|
|
|
|
final selectedThemeItem = Rx<WatchThemeItem?>(null);
|
|
|
|
|
|
|
|
final watchConnectErrorDesc = Rx<String?>(null);
|
|
|
|
|
|
|
|
bool get hasFriend {
|
|
|
|
return (friendThemeItem.value?.userId ?? 0) > 0;
|
|
|
|
}
|
|
...
|
...
|
@@ -149,10 +147,8 @@ class CustomWatchThemePreviewController extends GetxController { |
|
|
|
WearDeviceInfo? device;
|
|
|
|
try {
|
|
|
|
device = await WearEngineHostApi().checkConnectedDevice();
|
|
|
|
watchConnectErrorDesc.value = device?.connectedDeviceDesc;
|
|
|
|
} catch (e) {
|
|
|
|
device = null;
|
|
|
|
watchConnectErrorDesc.value = e.toString();
|
|
|
|
}
|
|
|
|
if (device?.isPaired != true) {
|
|
|
|
await Get.dialog<void>(
|
|
...
|
...
|
@@ -173,10 +169,8 @@ class CustomWatchThemePreviewController extends GetxController { |
|
|
|
WearDeviceInfo? device;
|
|
|
|
try {
|
|
|
|
device = await WearEngineHostApi().checkConnectedDevice();
|
|
|
|
watchConnectErrorDesc.value = device?.connectedDeviceDesc;
|
|
|
|
} catch (e) {
|
|
|
|
device = null;
|
|
|
|
watchConnectErrorDesc.value = e.toString();
|
|
|
|
}
|
|
|
|
if (device?.isPaired != true) {
|
|
|
|
await Get.dialog<void>(
|
...
|
...
|
|