Skip to content

Commit

Permalink
Merge pull request #125 from Wan7451/patch-1
Browse files Browse the repository at this point in the history
Update PermissionFragment.kt
  • Loading branch information
princekin-f authored Jan 28, 2021
2 parents a2a4dce + 1aca3e5 commit 8ce6b13
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

}
}

0 comments on commit 8ce6b13

Please sign in to comment.