|
|
|
@ -238,8 +238,8 @@ class ReaderActivity : BaseFullscreenActivity<ActivityReaderBinding>(),
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
false
|
|
|
|
false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
val targets = binding.root.hitTest(rawX, rawY)
|
|
|
|
val touchables = window.peekDecorView()?.touchables
|
|
|
|
targets.none { it.hasOnClickListeners() }
|
|
|
|
touchables?.none { it.hasGlobalPoint(rawX, rawY) } ?: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -281,7 +281,7 @@ class ReaderActivity : BaseFullscreenActivity<ActivityReaderBinding>(),
|
|
|
|
|
|
|
|
|
|
|
|
private fun onPageSaved(uri: Uri?) {
|
|
|
|
private fun onPageSaved(uri: Uri?) {
|
|
|
|
if (uri != null) {
|
|
|
|
if (uri != null) {
|
|
|
|
Snackbar.make(binding.container, R.string.page_saved, Snackbar.LENGTH_LONG)
|
|
|
|
Snackbar.make(binding.container, R.string.page_saved, Snackbar.LENGTH_INDEFINITE)
|
|
|
|
.setAnchorView(binding.appbarBottom)
|
|
|
|
.setAnchorView(binding.appbarBottom)
|
|
|
|
.setAction(R.string.share) {
|
|
|
|
.setAction(R.string.share) {
|
|
|
|
ShareHelper(this).shareImage(uri)
|
|
|
|
ShareHelper(this).shareImage(uri)
|
|
|
|
|