Fixed a bug where app bars wouldn't show up when tapping the screen if Musician Mode was enabled but Auto-scroll was off. (#42)

This commit is contained in:
Aryan 2026-03-07 23:28:15 +05:30 committed by GitHub
parent e78950e672
commit 68c4611187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View file

@ -74,8 +74,6 @@ import androidx.compose.material.icons.filled.ChevronLeft
import androidx.compose.material.icons.filled.ChevronRight import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.GraphicEq import androidx.compose.material.icons.filled.GraphicEq
import androidx.compose.material.icons.filled.Lock
import androidx.compose.material.icons.filled.LockOpen
import androidx.compose.material.icons.filled.Menu import androidx.compose.material.icons.filled.Menu
import androidx.compose.material.icons.filled.MoreVert import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material.icons.filled.Pause import androidx.compose.material.icons.filled.Pause
@ -993,7 +991,7 @@ fun AutoScrollControls(
contentAlignment = Alignment.Center contentAlignment = Alignment.Center
) { ) {
Column(horizontalAlignment = Alignment.CenterHorizontally) { Column(horizontalAlignment = Alignment.CenterHorizontally) {
val speedOptions = listOf(0.1f, 1f, 2f, 3f, 4f, 5f, 6f, 7f, 8f, 9f, 10f) val speedOptions = listOf(0.1f, 0.5f, 1f, 1.5f, 2f, 3f, 4f, 5f, 6f, 7f, 8f, 9f, 10f)
Row( Row(
modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp), modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),
horizontalArrangement = Arrangement.SpaceBetween horizontalArrangement = Arrangement.SpaceBetween

View file

@ -1896,7 +1896,7 @@ fun EpubReaderHost(
Timber.d("Auto-scroll toggled via tap: $isAutoScrollPlaying") Timber.d("Auto-scroll toggled via tap: $isAutoScrollPlaying")
} }
if (!isMusicianMode && System.currentTimeMillis() - lastHighlightClickTime > 500) { if (!(isMusicianMode && isAutoScrollModeActive) && System.currentTimeMillis() - lastHighlightClickTime > 500) {
focusManager.clearFocus() focusManager.clearFocus()
if (volumeScrollEnabled && !searchState.isSearchActive) { if (volumeScrollEnabled && !searchState.isSearchActive) {
containerFocusRequester.requestFocus() containerFocusRequester.requestFocus()

View file

@ -1345,7 +1345,7 @@ fun PdfViewerScreen(
} }
selectedTextBoxId = null selectedTextBoxId = null
} else { } else {
if (!isFullScreen && !isMusicianMode) { if (!isFullScreen && !(isMusicianMode && isAutoScrollModeActive)) {
showBars = !showBars showBars = !showBars
Timber.d("Vertical Reader Clicked. showBars now: $showBars") Timber.d("Vertical Reader Clicked. showBars now: $showBars")
} }