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 2d209611c..1a4de9e6f 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -117,7 +117,11 @@ abstract class BaseReadAloudService : BaseService(), } } } else { - contentList.addAll(textChapter.getUnRead(pageIndex).split("\n")) + textChapter.getUnRead(pageIndex).split("\n").forEach { + if (it.isNotEmpty()) { + contentList.add(it) + } + } } if (play) play() } ?: stopSelf()