Skip to content

Commit

Permalink
fix(capture-sdk) Fix a crash with lateinit value
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkray committed Aug 9, 2024
1 parent 110edd6 commit b0f88ab
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ class CaptureFlowFragment(private val openWithDocument: Document? = null) :
}
}

private fun finishWithResult(result: CaptureResult.Success) {
if (!ContextHelper.isTablet(requireContext())) {
requireActivity().requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
}
didFinishWithResult = true
captureFlowFragmentListener.onFinishedWithResult(result)
trackSdkClosedEvent(UserAnalyticsScreen.Analysis)
}
private fun finishWithResult(result: CaptureResult) {
if (!ContextHelper.isTablet(requireContext())) {
requireActivity().requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
Expand Down

0 comments on commit b0f88ab

Please sign in to comment.