From 4602afc67e4edd0bf04092e19ba9588a42e40e2c Mon Sep 17 00:00:00 2001 From: Rurirei <72071920+rurirei@users.noreply.github.com> Date: Wed, 21 Oct 2020 15:14:44 +0800 Subject: [PATCH] call stopV2ray on onDestroy --- .../src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt index a72f0bf1..bcbaa6c4 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt @@ -79,7 +79,7 @@ class V2RayVpnService : VpnService(), ServiceControl { override fun onDestroy() { super.onDestroy() - V2RayServiceManager.cancelNotification() + stopV2Ray() } private fun setup(parameters: String) {