Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
Open PDF from Tools: opaque picker screen, no buttons-before-background flash
Chethan616c7886a95ccbe
diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerScreen.ktindex ad90b99..6d67ae2 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerScreen.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerScreen.kt@@ -47,6 +47,7 @@ import androidx.compose.foundation.layout.WindowInsetsimport androidx.compose.foundation.layout.imeimport androidx.compose.foundation.layout.fillMaxSizeimport androidx.compose.foundation.layout.aspectRatio+import com.kyant.backdrop.drawBackdropimport androidx.compose.animation.core.animateFloatimport androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.ime@@ -598,7 +599,14 @@ fun PdfViewerScreen(// section carried `weight(1f)`. So the moment the prompt and the keyboard were both up, the// weighted section was squeezed and the card was chopped mid-sentence — the whole point of a// password dialog is that the thing behind it stays intact.- Box(Modifier.fillMaxSize()) {+ // Opaque: paint the wallpaper itself behind the picker. Without it this branch was see-through,+ // so during the "lift" the held Tools/Home screen showed behind the new buttons and vanished+ // only when the transition ended — the buttons-first-then-background glitch.+ Box(+ Modifier+ .fillMaxSize()+ .drawBackdrop(backdrop = backdrop, shape = { androidx.compose.ui.graphics.RectangleShape }, effects = {}, highlight = { null }, shadow = null)+ ) {Column(Modifier.fillMaxSize().statusBarsPadding().padding(16.dp),verticalArrangement = Arrangement.spacedBy(16.dp)