Skip to content

Commit

Permalink
Merge pull request getodk#4745 from grzesiek2010/COLLECT-4741
Browse files Browse the repository at this point in the history
Fixed navigating away during QR code camera permission request
  • Loading branch information
grzesiek2010 authored Jul 29, 2021
2 parents 5505e10 + 891691a commit 3765c44
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ class QrCodeProjectCreatorDialog :
requireActivity(),
object : PermissionListener {
override fun granted() {
startScanning(savedInstanceState)
// Do not call from a fragment that does not exist anymore https://github.com/getodk/collect/issues/4741
if (isAdded) {
startScanning(savedInstanceState)
}
}

override fun denied() {
Expand Down

0 comments on commit 3765c44

Please sign in to comment.