From 612c25c4067f7a46e3a12ffe1b7eb0a86adb6542 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 7 Sep 2021 18:31:45 +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/CacheBookService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/service/CacheBookService.kt b/app/src/main/java/io/legado/app/service/CacheBookService.kt index ea280529e..5d26452a4 100644 --- a/app/src/main/java/io/legado/app/service/CacheBookService.kt +++ b/app/src/main/java/io/legado/app/service/CacheBookService.kt @@ -9,6 +9,8 @@ import io.legado.app.constant.EventBus import io.legado.app.constant.IntentAction import io.legado.app.help.AppConfig import io.legado.app.model.CacheBook +import io.legado.app.ui.book.cache.CacheActivity +import io.legado.app.utils.activityPendingIntent import io.legado.app.utils.postEvent import io.legado.app.utils.servicePendingIntent import kotlinx.coroutines.* @@ -29,6 +31,7 @@ class CacheBookService : BaseService() { .setSmallIcon(R.drawable.ic_download) .setOngoing(true) .setContentTitle(getString(R.string.offline_cache)) + .setContentIntent(activityPendingIntent("cacheActivity")) builder.addAction( R.drawable.ic_stop_black_24dp, getString(R.string.cancel),