diff --git a/app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt b/app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt index 5e1fabc5f..b4ef914e3 100644 --- a/app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt +++ b/app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt @@ -92,8 +92,10 @@ class MediaButtonReceiver : BroadcastReceiver() { } else { appDb.bookDao.lastReadBook?.let { ReadBook.resetData(it) - ReadBook.curTextChapter ?: ReadBook.loadContent(false) - ReadBook.readAloud() + ReadBook.clearTextChapter() + ReadBook.loadContent(false) { + ReadBook.readAloud() + } } } }