From 94d6a08fcbdacea0cf96f5a765211f377444a72a Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 8 Jul 2023 09:27:24 +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 --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index cb3efbd6bb05..bd4850b0912b 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -81,7 +81,8 @@ abstract class BaseReadAloudService : BaseService(), internal var pageIndex = 0 private var needResumeOnAudioFocusGain = false private var dsJob: Job? = null - private var cover: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.icon_read_book) + private var cover: Bitmap = + BitmapFactory.decodeResource(appCtx.resources, R.drawable.icon_read_book) var pageChanged = false private val broadcastReceiver = object : BroadcastReceiver() {