Skip to content

Commit

Permalink
Bump version (#123)
Browse files Browse the repository at this point in the history
* Bump version
* Consume back handler call to close chapters menu if its open
---------
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam authored Mar 11, 2024
1 parent 5a15d9e commit 9da2d7e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
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.

0 comments on commit 9da2d7e

Please sign in to comment.