Support reading AP clients from framework

This commit is contained in:
Mygod
2021-05-28 23:07:07 -04:00
parent 257e4497cc
commit 4a0e4537e5
4 changed files with 37 additions and 24 deletions

View File

@@ -88,10 +88,7 @@ object WifiApManager {
* @param clients the currently connected clients
*/
@RequiresApi(30)
fun onConnectedClientsChanged(clients: List<Parcelable>) {
@Suppress("DEPRECATION")
onNumClientsChanged(clients.size)
}
fun onConnectedClientsChanged(clients: List<Parcelable>) = onNumClientsChanged(clients.size)
/**
* Called when information of softap changes.