kidd3166 1 tahun lalu
induk
melakukan
67198cffe0
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 3 0
      lib/application.dart
  2. 1 1
      lib/provider/bluetooth.dart

+ 3 - 0
lib/application.dart

@@ -94,6 +94,9 @@ class Application {
     } catch (e) {
       print(e);
     }
+    infos.forEach((key, value) {
+      infos[key] = Uri.encodeComponent(value);
+    });
     return infos;
   }
 

+ 1 - 1
lib/provider/bluetooth.dart

@@ -259,7 +259,7 @@ class Bluetooth with InjectApi, GameLog {
         autoConnect();
       } else if (state == BleStatus.unknown) {
       } else if (state == BleStatus.poweredOff) {
-        clearDevice(deleteStep: false);
+        // clearDevice(deleteStep: false);
         // ToastUtil.show("蓝牙服务已关闭");
       } else {}
     });