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

@@ -3,7 +3,6 @@ package be.mygod.vpnhotspot
import android.content.Intent
import android.content.IntentFilter
import android.net.wifi.WifiManager
import android.os.Binder
import android.support.annotation.RequiresApi
import android.widget.Toast
import be.mygod.vpnhotspot.App.Companion.app
@@ -18,7 +17,7 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
private const val TAG = "LocalOnlyHotspotService"
}
inner class HotspotBinder : Binder() {
inner class Binder : android.os.Binder() {
var fragment: TetheringFragment? = null
var iface: String? = null
val configuration get() = reservation?.wifiConfiguration
@@ -26,7 +25,7 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
fun stop() = reservation?.close()
}
private val binder = HotspotBinder()
private val binder = Binder()
private var reservation: WifiManager.LocalOnlyHotspotReservation? = null
private var routingManager: LocalOnlyInterfaceManager? = null
private var receiverRegistered = false