[6.4.0] add wifi connect state init
This commit is contained in:
@@ -88,6 +88,9 @@ class WifiStateView @JvmOverloads constructor(
|
||||
wifiManager =
|
||||
context.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager?
|
||||
wifiHandler = WifiHandler(this)
|
||||
val wifiInfo = wifiManager!!.connectionInfo
|
||||
wifiName = wifiInfo.ssid.replace("\"","")
|
||||
Log.i("emArrow", "init wifiName: $wifiName")
|
||||
}
|
||||
|
||||
private val wifiStateReceiver: BroadcastReceiver = object : BroadcastReceiver() {
|
||||
|
||||
Reference in New Issue
Block a user