Rename binders

This commit is contained in:
Mygod
2018-05-09 16:36:08 -07:00
parent 3d0b430fa8
commit d7c5dd18a5
7 changed files with 17 additions and 23 deletions

View File

@@ -2,7 +2,6 @@ package be.mygod.vpnhotspot
import android.content.Intent
import android.content.IntentFilter
import android.os.Binder
import android.widget.Toast
import be.mygod.vpnhotspot.App.Companion.app
import be.mygod.vpnhotspot.net.IpNeighbourMonitor
@@ -19,13 +18,13 @@ class TetheringService : IpNeighbourMonitoringService(), VpnMonitor.Callback {
const val EXTRA_REMOVE_INTERFACE = "interface.remove"
}
inner class TetheringBinder : Binder() {
inner class Binder : android.os.Binder() {
var fragment: TetheringFragment? = null
fun isActive(iface: String): Boolean = synchronized(routings) { routings.keys.contains(iface) }
}
private val binder = TetheringBinder()
private val binder = Binder()
private val routings = HashMap<String, Routing?>()
private var upstream: String? = null
private var dns: List<InetAddress> = emptyList()