[Android] Wifi status in footer (#3396)

Implemented through the Android API so it's reasonably cheap.
This commit is contained in:
mwoz123
2017-10-28 17:51:34 +02:00
committed by Frans de Jonge
parent 575fc82081
commit a01271b8a6
3 changed files with 19 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ function Device:initNetworkManager(NetworkMgr)
NetworkMgr.turnOffWifi = function()
android.setWifiEnabled(false)
end
NetworkMgr.isWifiOn = function()
return android.isWifiEnabled()
end
end
return Device