From 527f99ea00c0d81b15fe5f5bbbc2b51e5edd1e37 Mon Sep 17 00:00:00 2001 From: Kr328 <39107975+Kr328@users.noreply.github.com> Date: Tue, 26 Nov 2019 13:52:28 +0800 Subject: [PATCH] dynamic disable notification update --- .../main/java/com/github/kr328/clash/service/ClashService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/com/github/kr328/clash/service/ClashService.kt b/service/src/main/java/com/github/kr328/clash/service/ClashService.kt index a046e8c..650d6b9 100644 --- a/service/src/main/java/com/github/kr328/clash/service/ClashService.kt +++ b/service/src/main/java/com/github/kr328/clash/service/ClashService.kt @@ -184,10 +184,12 @@ class ClashService : Service(), IClashEventObserver, ClashEventService.Master, reloadProfile() notification.show() - + eventService.recastEventRequirement() } ProcessEvent.STOPPED -> { + eventService.preformTrafficEvent(TrafficEvent(0, 0, 0)) + notification.cancel() } }