Browse Source

1.wifi白名单添加之前先移除

20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
b7148c6a70
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt

+ 5
- 0
app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt View File

@@ -34,6 +34,11 @@ object StrategyUtils {
34 34
                         list.add(s)
35 35
                     }
36 36
                 }
37
+                //先移除再添加
38
+                val wifiWhiteList = ManageApplication.getWifiWhiteList()
39
+                if (wifiWhiteList.isNotEmpty()){
40
+                    ManageApplication.removeWifiWhiteList(wifiWhiteList)
41
+                }
37 42
                 ManageApplication.addWifiWhiteList(list)
38 43
             }
39 44
         } else {

Loading…
Cancel
Save