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

Fragment InvisibleFragment not attached to a context #254

Open
wangshaolei opened this issue Jul 4, 2023 · 0 comments
Open

Fragment InvisibleFragment not attached to a context #254

wangshaolei opened this issue Jul 4, 2023 · 0 comments

Comments

@wangshaolei
Copy link

//PermissionX.init(this)
// .permissions(Manifest.permission.SYSTEM_ALERT_WINDOW)
// .onExplainRequestReason { scope, deniedList ->
// scope.showRequestReasonDialog(deniedList, "悬浮窗权限", "确定", "取消")
// }
// .onForwardToSettings { scope, deniedList ->
// scope.showForwardToSettingsDialog(deniedList, "悬浮窗权限,去设置", "确定", "取消")
// }
// .request { allGranted, _, _ ->
// binding.swDrawWindow.isChecked = allGranted
// checkPermission()
// }

使用悬浮窗拦截时:
操作:第1次到设置页面不操作返回-> 第2次到设置 页面操作返回 -> 再点击其它标准权限拦截弹窗时崩溃

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

1 participant