Skip to content

Commit

Permalink
Fix for Tapping on gray reader background should toggle full-screen m…
Browse files Browse the repository at this point in the history
…ode. Closes #193
  • Loading branch information
Dima-Android committed Dec 5, 2024
1 parent f5716b1 commit 435d01a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ class PdfReaderViewModel @Inject constructor(
this@PdfReaderViewModel.onDocumentLoaded(document)
}

override fun onDocumentClick(): Boolean {
decideTopBarAndBottomBarVisibility(null)
return false
}

override fun onPageClick(
document: PdfDocument,
pageIndex: Int,
Expand Down Expand Up @@ -2384,6 +2389,11 @@ class PdfReaderViewModel @Inject constructor(
}
}

override fun onDocumentClick(): Boolean {
decideTopBarAndBottomBarVisibility(null)
return false
}

override fun onPageClick(
document: PdfDocument,
pageIndex: Int,
Expand Down

0 comments on commit 435d01a

Please sign in to comment.