Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version #123

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
applicationId "com.starry.myne"
minSdk 26
targetSdk 34
versionCode 300
versionName "3.0.0"
versionCode 310
versionName "3.1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.selection.selectable
import androidx.compose.foundation.selection.selectableGroup
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.OutlinedButton
import androidx.compose.material3.OutlinedButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Menu
import androidx.compose.material3.AlertDialog
Expand Down Expand Up @@ -137,6 +137,12 @@ fun ReaderScreen(
val chapters = viewModel.state.epubBook?.chapters
val coroutineScope = rememberCoroutineScope()

BackHandler(drawerState.isOpen) {
if (drawerState.isOpen) {
coroutineScope.launch { drawerState.close() }
}
}

ModalNavigationDrawer(
drawerState = drawerState,
gesturesEnabled = drawerState.isOpen,
Expand Down Expand Up @@ -457,7 +463,7 @@ fun FontSelectionButton(
shape = RoundedCornerShape(16.dp),
border = BorderStroke(1.dp, MaterialTheme.colorScheme.onSurface),
colors = ButtonDefaults.buttonColors(
backgroundColor = MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp)
containerColor = MaterialTheme.colorScheme.surfaceColorAtElevation(2.dp)
)
) {
Row(verticalAlignment = Alignment.CenterVertically) {
Expand Down
7 changes: 7 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Major improvements in the internal reader with new ToC-based EPUB parsing logic, allowing it to correctly map chapters instead of relying on a wacky spine-based parser.
- Redesigned the chapter list dialog inside the ebook reader to comply with the rest of the UI design.
- Added a progress indicator at the top bar in the ebook reader to track the progress of the current chapter.
- Fixed the progress percentage not updating immediately when going back to the chapters menu from the reader screen.
- Added two new fonts in the ebook reader called OpenDyslexia and Figerona.
- Bunch of code cleanups, optimizations, and other improvements.
- Updated Compose BOM, Kotlin, and other dependencies.
Loading