From 44e1c465d5b3a55253633cceb95a27ad5d4e615e Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 22 Aug 2019 09:16:26 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/PendingIntentHelp.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/PendingIntentHelp.kt b/app/src/main/java/io/legado/app/help/PendingIntentHelp.kt index 5684390f2..e0725cb27 100644 --- a/app/src/main/java/io/legado/app/help/PendingIntentHelp.kt +++ b/app/src/main/java/io/legado/app/help/PendingIntentHelp.kt @@ -3,6 +3,7 @@ package io.legado.app.help import android.app.PendingIntent import android.content.Context import android.content.Intent +import io.legado.app.service.ReadAloudService import io.legado.app.ui.readbook.ReadBookActivity object PendingIntentHelp { @@ -14,7 +15,7 @@ object PendingIntentHelp { } fun aloudServicePendingIntent(context: Context, actionStr: String): PendingIntent { - val intent = Intent(context, this.javaClass) + val intent = Intent(context, ReadAloudService::class.java) intent.action = actionStr return PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT) }