From e58d06ab99664dfd5377e0cd4b0197074f7bbbf6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Mar 2020 22:36:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 6 +++++- 1 file changed, 5 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 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()