Refine aggregator
This commit is contained in:
@@ -5,12 +5,12 @@ import be.mygod.vpnhotspot.net.IpNeighbour
|
||||
import be.mygod.vpnhotspot.net.monitor.IpNeighbourMonitor
|
||||
|
||||
abstract class IpNeighbourMonitoringService : Service(), IpNeighbourMonitor.Callback {
|
||||
private var neighbours = emptyList<IpNeighbour>()
|
||||
private var neighbours: Collection<IpNeighbour> = emptyList()
|
||||
|
||||
protected abstract val activeIfaces: List<String>
|
||||
protected open val inactiveIfaces get() = emptyList<String>()
|
||||
|
||||
override fun onIpNeighbourAvailable(neighbours: List<IpNeighbour>) {
|
||||
override fun onIpNeighbourAvailable(neighbours: Collection<IpNeighbour>) {
|
||||
this.neighbours = neighbours
|
||||
updateNotification()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user