Browse Source

feat: 优化

HapeLee 3 months ago
parent
commit
608c1b3acf

+ 1 - 0
app/src/main/java/io/legado/app/ui/book/read/ReadBookScreen.kt

@@ -76,6 +76,7 @@ fun ReadBookScreen(
             state.activeSheet != null -> onIntent(ReadBookIntent.DismissSheet)
             state.isShowingSearchResult -> onIntent(ReadBookIntent.ExitSearch)
             state.isAutoPage -> onIntent(ReadBookIntent.StopAutoPage)
+            state.menuState.canNavigateBack -> onIntent(ReadBookIntent.ReadMenuBack)
             else -> onIntent(ReadBookIntent.CloseReadBook())
         }
     }

+ 2 - 1
app/src/main/java/io/legado/app/ui/book/readaloud/player/ReadAloudPlayerCoordinator.kt

@@ -106,7 +106,8 @@ class ReadAloudPlayerCoordinator(
             chapterTitle = chapter?.title.orEmpty(),
             chapterText = chapter?.getContent().orEmpty(),
             textLines = chapter?.paragraphs.orEmpty().mapNotNull { paragraph ->
-                paragraph.text.trim().takeIf(String::isNotEmpty)?.let {
+                paragraph.text.replace(Regex("[袮꧁]"), " ").trim()
+                    .takeIf(String::isNotEmpty)?.let {
                     ReadAloudTextLineUi(it, paragraph.chapterPosition)
                 }
             }.toImmutableList(),