Skip to content

Commit

Permalink
call callback when permission denied
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraReichel committed Feb 11, 2020
1 parent 588b41e commit 3d3792b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ class PickPicCaptureFragment : DialogFragment() {
if (deniedPermissions.isEmpty()) {
startCamera()
} else {
dismiss()
captureCallback?.onCapture(null)
dismissAllowingStateLoss()
}
}
}
Expand Down

0 comments on commit 3d3792b

Please sign in to comment.