feat: 优化代码

pull/169/head^2
kunfei 5 years ago
parent 7768773e65
commit e58d06ab99
  1. 6
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

@ -117,7 +117,11 @@ abstract class BaseReadAloudService : BaseService(),
} }
} }
} else { } else {
contentList.addAll(textChapter.getUnRead(pageIndex).split("\n")) textChapter.getUnRead(pageIndex).split("\n").forEach {
if (it.isNotEmpty()) {
contentList.add(it)
}
}
} }
if (play) play() if (play) play()
} ?: stopSelf() } ?: stopSelf()

Loading…
Cancel
Save