diff --git a/easyfloat/src/main/java/com/lzf/easyfloat/permission/PermissionFragment.kt b/easyfloat/src/main/java/com/lzf/easyfloat/permission/PermissionFragment.kt index 5b4a3e8..7494225 100644 --- a/easyfloat/src/main/java/com/lzf/easyfloat/permission/PermissionFragment.kt +++ b/easyfloat/src/main/java/com/lzf/easyfloat/permission/PermissionFragment.kt @@ -44,10 +44,11 @@ internal class PermissionFragment : Fragment() { Logger.i("PermissionFragment onActivityResult: $check") // 回调权限结果 onPermissionResult?.permissionResult(check) + onPermissionResult = null // 将Fragment移除 fragmentManager.beginTransaction().remove(this).commitAllowingStateLoss() }, 500) } } -} \ No newline at end of file +}