Tell user when blocking won't work

This commit is contained in:
Mygod
2018-10-03 14:16:31 +08:00
parent 249474abb2
commit a4e69c5a9b
4 changed files with 12 additions and 0 deletions

View File

@@ -146,4 +146,9 @@ object TrafficRecorder {
unscheduleUpdateLocked()
records.clear()
}
/**
* Possibly inefficient. Don't call this too often.
*/
fun isWorking(mac: Long) = records.values.any { it.mac == mac }
}