From 7c6c2fa3b17f81fddb6189d76fe070eeed871ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C9=91rry=20Shiv=C9=91m?= Date: Wed, 25 Sep 2024 15:54:25 +0530 Subject: [PATCH] fix: Handle one edge-case in reader & some other improvements (#223) Signed-off-by: starry-shivam --- .idea/appInsightsSettings.xml | 1 + .../java/com/starry/myne/di/MainModule.kt | 8 +- .../java/com/starry/myne/epub/EpubCache.kt | 16 ++ .../java/com/starry/myne/epub/EpubParser.kt | 43 ++++- .../starry/myne/epub/models/EpubChapter.kt | 1 + .../library/viewmodels/LibraryViewModel.kt | 1 + .../reader/activities/ReaderActivity.kt | 43 ++--- .../{ReaderContent.kt => ChaptersContent.kt} | 6 +- .../reader/composables/ReaderScreen.kt | 162 +++++++++--------- .../reader/viewmodels/ReaderViewModel.kt | 33 ++-- .../java/com/starry/myne/EpubParserTest.kt | 7 +- 11 files changed, 186 insertions(+), 135 deletions(-) rename app/src/main/java/com/starry/myne/ui/screens/reader/composables/{ReaderContent.kt => ChaptersContent.kt} (98%) diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml index f9cd1c27..9b2c07c2 100644 --- a/.idea/appInsightsSettings.xml +++ b/.idea/appInsightsSettings.xml @@ -1,6 +1,7 @@ +