only show speed if core isrunning

This commit is contained in:
cutelua
2019-07-09 15:58:36 +08:00
parent 71a6531835
commit 17c858d24c

View File

@@ -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