From 17c858d24c02e09166febf5718a1e42513524a66 Mon Sep 17 00:00:00 2001 From: cutelua <33216131+cutelua@users.noreply.github.com> Date: Tue, 9 Jul 2019 15:58:36 +0800 Subject: [PATCH] only show speed if core isrunning --- .../app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt | 1 + 1 file changed, 1 insertion(+) 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 ac8e16d1..bc06dd5a 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 @@ -367,6 +367,7 @@ class V2RayVpnService : VpnService() { fun startSpeedNotification() { if (mSubscription == null && + v2rayPoint.isRunning && defaultDPreference.getPrefBoolean(SettingsActivity.PREF_SPEED_ENABLED, false)) { val cf_name = defaultDPreference.getPrefString(AppConfig.PREF_CURR_CONFIG_NAME, "") var last_zero_speed = false