Update dependencies
This commit is contained in:
@@ -88,7 +88,7 @@ class BoxService(
|
|||||||
|
|
||||||
private fun startCommandServer() {
|
private fun startCommandServer() {
|
||||||
val commandServer =
|
val commandServer =
|
||||||
CommandServer(Application.application.filesDir.absolutePath, this)
|
CommandServer(Application.application.filesDir.absolutePath, this, 300)
|
||||||
commandServer.start()
|
commandServer.start()
|
||||||
this.commandServer = commandServer
|
this.commandServer = commandServer
|
||||||
}
|
}
|
||||||
@@ -160,10 +160,6 @@ class BoxService(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun serviceStop() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun stopService() {
|
private fun stopService() {
|
||||||
if (status.value != Status.Started) return
|
if (status.value != Status.Started) return
|
||||||
status.value = Status.Stopping
|
status.value = Status.Stopping
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import io.nekohasekai.libbox.CommandClient
|
|||||||
import io.nekohasekai.libbox.CommandClientHandler
|
import io.nekohasekai.libbox.CommandClientHandler
|
||||||
import io.nekohasekai.libbox.CommandClientOptions
|
import io.nekohasekai.libbox.CommandClientOptions
|
||||||
import io.nekohasekai.libbox.Libbox
|
import io.nekohasekai.libbox.Libbox
|
||||||
|
import io.nekohasekai.libbox.OutboundGroupIterator
|
||||||
import io.nekohasekai.libbox.StatusMessage
|
import io.nekohasekai.libbox.StatusMessage
|
||||||
import io.nekohasekai.sfa.R
|
import io.nekohasekai.sfa.R
|
||||||
import io.nekohasekai.sfa.bg.BoxService
|
import io.nekohasekai.sfa.bg.BoxService
|
||||||
@@ -166,6 +167,9 @@ class DashboardFragment : Fragment(), CommandClientHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun writeGroups(message: OutboundGroupIterator?) {
|
||||||
|
}
|
||||||
|
|
||||||
class Adapter(
|
class Adapter(
|
||||||
internal val scope: CoroutineScope,
|
internal val scope: CoroutineScope,
|
||||||
private val parent: FragmentDashboardBinding
|
private val parent: FragmentDashboardBinding
|
||||||
@@ -264,7 +268,7 @@ class DashboardFragment : Fragment(), CommandClientHandler {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
runCatching {
|
runCatching {
|
||||||
Libbox.clientServiceReload(mainActivity.filesDir.absolutePath)
|
Libbox.newStandaloneCommandClient(mainActivity.filesDir.absolutePath).serviceReload()
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
mainActivity.errorDialogBuilder(it).show()
|
mainActivity.errorDialogBuilder(it).show()
|
||||||
|
|||||||
Reference in New Issue
Block a user