temporary fix for building
This commit is contained in:
@@ -2,6 +2,7 @@ package io.nekohasekai.sfa.bg
|
|||||||
|
|
||||||
import android.app.Service
|
import android.app.Service
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import io.nekohasekai.libbox.NeighborUpdateListener
|
||||||
import io.nekohasekai.libbox.Notification
|
import io.nekohasekai.libbox.Notification
|
||||||
|
|
||||||
class ProxyService :
|
class ProxyService :
|
||||||
@@ -14,6 +15,12 @@ class ProxyService :
|
|||||||
override fun onBind(intent: Intent) = service.onBind()
|
override fun onBind(intent: Intent) = service.onBind()
|
||||||
|
|
||||||
override fun onDestroy() = service.onDestroy()
|
override fun onDestroy() = service.onDestroy()
|
||||||
|
override fun closeNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
||||||
|
override fun startNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import android.net.VpnService
|
|||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import io.nekohasekai.libbox.NeighborUpdateListener
|
||||||
import io.nekohasekai.libbox.Notification
|
import io.nekohasekai.libbox.Notification
|
||||||
import io.nekohasekai.libbox.TunOptions
|
import io.nekohasekai.libbox.TunOptions
|
||||||
import io.nekohasekai.sfa.database.Settings
|
import io.nekohasekai.sfa.database.Settings
|
||||||
@@ -51,6 +52,9 @@ class VPNService :
|
|||||||
protect(fd)
|
protect(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun closeNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
}
|
||||||
|
|
||||||
var systemProxyAvailable = false
|
var systemProxyAvailable = false
|
||||||
var systemProxyEnabled = false
|
var systemProxyEnabled = false
|
||||||
|
|
||||||
@@ -182,4 +186,6 @@ class VPNService :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
override fun sendNotification(notification: Notification) = service.sendNotification(notification)
|
||||||
|
override fun startNeighborMonitor(listener: NeighborUpdateListener?) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user