Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级版本后hide()方法无法隐藏浮窗 #197

Open
jarvan11 opened this issue Jan 9, 2025 · 2 comments
Open

升级版本后hide()方法无法隐藏浮窗 #197

jarvan11 opened this issue Jan 9, 2025 · 2 comments

Comments

@jarvan11
Copy link

jarvan11 commented Jan 9, 2025

你的Fx版本是多少
2.3.3
遇到了什么问题
原本的hide()方法,调用会隐藏浮窗,1.3.5升级到2.3.3后,hide()方法无效,无法隐藏浮窗
可复现的示例代码 或者 复现步骤
val mIFxScopeControl = FxScopeHelper.build {
this.setLayoutView(rootView)
this.setEnableEdgeAdsorption(true)
this.setDisplayMode(FxDisplayMode.Normal)
this.setGravity(FxGravity.RIGHT_OR_BOTTOM)
this.setOffsetXY(0f, -(220f.dpToPx().toFloat()))
//this.setEnableAssistDirection(0f, 220f.dpToPx().toFloat(), 0f, 0f)
}.toControl(activity)

//原本的hide()方法,调用会隐藏浮窗,1.3.5升级到2.3.3后,hide()方法无效,无法隐藏浮窗
//无法隐藏浮窗
mIFxScopeControl?.hide()
//可以隐藏浮窗
mIFxScopeControl?.cancel()

@Petterpx
Copy link
Owner

Petterpx commented Jan 9, 2025

晚点试试,simple里没发现

@jarvan11
Copy link
Author

jarvan11 commented Jan 9, 2025

晚点试试,simple里没发现

@Petterpx 补充下,用2.3.2版本没问题,调用hide()方法可以隐藏,2.3.3版本调用hide()方法无法隐藏浮窗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants