mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -959,6 +959,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
/**
|
||||
* 长按图片
|
||||
*/
|
||||
@SuppressLint("RtlHardcoded")
|
||||
override fun onImageLongPress(x: Float, y: Float, src: String) {
|
||||
imagePopupAction.setItems(
|
||||
listOf(
|
||||
@@ -979,7 +980,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM)
|
||||
navigationBarHeight else 0
|
||||
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()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user