mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
209662f323
commit
117e79df27
@ -475,10 +475,12 @@ class ReadBookActivity : ReadBookBaseActivity(),
|
||||
* 显示文本操作菜单
|
||||
*/
|
||||
override fun showTextActionMenu() {
|
||||
val nbh = if (ReadBookConfig.hideNavigationBar) navigationBarHeight else 0
|
||||
val navigationBarHeight =
|
||||
if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM)
|
||||
navigationBarHeight else 0
|
||||
textActionMenu.show(
|
||||
binding.textMenuPosition,
|
||||
binding.root.height + nbh,
|
||||
binding.root.height + navigationBarHeight,
|
||||
binding.textMenuPosition.x.toInt(),
|
||||
binding.textMenuPosition.y.toInt(),
|
||||
binding.cursorLeft.y.toInt() + binding.cursorLeft.height,
|
||||
|
Loading…
Reference in New Issue
Block a user