|
@@ -218,14 +218,13 @@ class WifiListActivity : CommonBindingActivity<ActivityWifiListBinding>(),
|
|
|
|
|
|
override fun onResume() {
|
|
override fun onResume() {
|
|
super.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 {
|
|
companion object {
|