优化
This commit is contained in:
@@ -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()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user