优化
This commit is contained in:
1 parent
cb56ba7475
commit
45d631c1b7
1 file changed
+4
-2
@@ -89,8 +89,10 @@ object CacheBook {
|
||||
}
|
||||
|
||||
fun stop(context: Context) {
|
||||
context.startService<CacheBookService> {
|
||||
action = IntentAction.stop
|
||||
if (CacheBookService.isRun) {
|
||||
context.startService<CacheBookService> {
|
||||
action = IntentAction.stop
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user