Преглед изворни кода

提交人:jtm
提交内容:bug fixed

江天明 пре 1 година
родитељ
комит
70fa0cfb68

+ 7 - 8
BusinessSetting/src/main/java/com/develop/setting/ui/WifiListActivity.kt

@@ -218,14 +218,13 @@ class WifiListActivity : CommonBindingActivity<ActivityWifiListBinding>(),
 
     override fun onResume() {
         super.onResume()
-        wifiHelp.scan()
-//        AndPermission.with(this).runtime().permission(
-//            Permission.ACCESS_FINE_LOCATION,
-//            Permission.ACCESS_BACKGROUND_LOCATION,
-//            Permission.ACCESS_COARSE_LOCATION
-//        ).onGranted {
-//            wifiHelp.scan()
-//        }.start()
+        AndPermission.with(this).runtime().permission(
+            Permission.ACCESS_FINE_LOCATION,
+            Permission.ACCESS_BACKGROUND_LOCATION,
+            Permission.ACCESS_COARSE_LOCATION
+        ).onGranted {
+            wifiHelp.scan()
+        }.start()
     }
 
     companion object {