Add passing the VPN connection status when rebinding to the service
This commit is contained in:
parent
5835a756ce
commit
dc6e3ec53b
8 changed files with 65 additions and 28 deletions
|
|
@ -62,8 +62,8 @@ class AmneziaActivity : QtActivity() {
|
|||
ServiceEvent.STATUS -> {
|
||||
if (isWaitingStatus) {
|
||||
isWaitingStatus = false
|
||||
msg.data?.getStatus()?.let { (isConnected) ->
|
||||
QtAndroidController.onStatus(isConnected)
|
||||
msg.data?.getStatus()?.let { (state) ->
|
||||
QtAndroidController.onStatus(state.ordinal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue