From 09f59535556f4243ac4b009ec0bdab5c4a755f29 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 1 Aug 2021 10:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/WebService.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/WebService.kt b/app/src/main/java/io/legado/app/service/WebService.kt index e8662a51f..2342a89c4 100644 --- a/app/src/main/java/io/legado/app/service/WebService.kt +++ b/app/src/main/java/io/legado/app/service/WebService.kt @@ -27,11 +27,7 @@ class WebService : BaseService() { } fun stop(context: Context) { - if (isRun) { - context.startService { - action = IntentAction.stop - } - } + context.stopService() } }