pull/1395/head
gedoor 3 years ago
parent 209662f323
commit 117e79df27
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -475,10 +475,12 @@ class ReadBookActivity : ReadBookBaseActivity(),
* 显示文本操作菜单 * 显示文本操作菜单
*/ */
override fun showTextActionMenu() { override fun showTextActionMenu() {
val nbh = if (ReadBookConfig.hideNavigationBar) navigationBarHeight else 0 val navigationBarHeight =
if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM)
navigationBarHeight else 0
textActionMenu.show( textActionMenu.show(
binding.textMenuPosition, binding.textMenuPosition,
binding.root.height + nbh, binding.root.height + navigationBarHeight,
binding.textMenuPosition.x.toInt(), binding.textMenuPosition.x.toInt(),
binding.textMenuPosition.y.toInt(), binding.textMenuPosition.y.toInt(),
binding.cursorLeft.y.toInt() + binding.cursorLeft.height, binding.cursorLeft.y.toInt() + binding.cursorLeft.height,

Loading…
Cancel
Save