pull/1814/head
kunfei 3 years ago
parent 656d4f71eb
commit 2bbd8da540
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -959,6 +959,7 @@ class ReadBookActivity : BaseReadBookActivity(),
/** /**
* 长按图片 * 长按图片
*/ */
@SuppressLint("RtlHardcoded")
override fun onImageLongPress(x: Float, y: Float, src: String) { override fun onImageLongPress(x: Float, y: Float, src: String) {
imagePopupAction.setItems( imagePopupAction.setItems(
listOf( listOf(
@ -979,7 +980,7 @@ class ReadBookActivity : BaseReadBookActivity(),
if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM) if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM)
navigationBarHeight else 0 navigationBarHeight else 0
imagePopupAction.showAtLocation( imagePopupAction.showAtLocation(
binding.readView, Gravity.BOTTOM or Gravity.CENTER_HORIZONTAL, 0, binding.readView, Gravity.BOTTOM or Gravity.LEFT, x.toInt(),
binding.root.height + navigationBarHeight - y.toInt() binding.root.height + navigationBarHeight - y.toInt()
) )
} }

Loading…
Cancel
Save