Also print blocked client in log
This commit is contained in:
@@ -171,8 +171,9 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
|
|||||||
data.notifyChange()
|
data.notifyChange()
|
||||||
}
|
}
|
||||||
override fun onBlockedClientConnecting(client: MacAddress, blockedReason: Int) {
|
override fun onBlockedClientConnecting(client: MacAddress, blockedReason: Int) {
|
||||||
SmartSnackbar.make(parent.getString(R.string.tethering_manage_wifi_client_blocked, client,
|
val reason = WifiApManager.clientBlockLookup(blockedReason, true)
|
||||||
WifiApManager.clientBlockLookup(blockedReason, true))).apply {
|
Timber.i("$client blocked from connecting: $reason ($blockedReason)")
|
||||||
|
SmartSnackbar.make(parent.getString(R.string.tethering_manage_wifi_client_blocked, client, reason)).apply {
|
||||||
action(R.string.tethering_manage_wifi_copy_mac) {
|
action(R.string.tethering_manage_wifi_copy_mac) {
|
||||||
app.clipboard.setPrimaryClip(ClipData.newPlainText(null, client.toString()))
|
app.clipboard.setPrimaryClip(ClipData.newPlainText(null, client.toString()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user