Skip to content

Commit

Permalink
Add missing allowNewEnroll in DocumentVerification. (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
andershermansen authored Jan 17, 2024
1 parent 9c53d93 commit af8eda6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class DocumentVerificationFragment : Fragment() {
arguments = Bundle().apply {
this.userId = userId
this.jobId = jobId
this.allowNewEnroll = allowNewEnroll
this.showAttribution = showAttribution
this.allowAgentMode = allowAgentMode
this.allowGalleryUpload = allowGalleryUpload
Expand Down Expand Up @@ -117,6 +118,7 @@ class DocumentVerificationFragment : Fragment() {
documentType = args.documentType,
userId = args.userId,
jobId = args.jobId,
allowNewEnroll = args.allowNewEnroll,
showAttribution = args.showAttribution,
allowAgentMode = args.allowAgentMode,
allowGalleryUpload = args.allowGalleryUpload,
Expand All @@ -142,6 +144,11 @@ private var Bundle.jobId: String
get() = getString(KEY_JOB_ID)!!
set(value) = putString(KEY_JOB_ID, value)

private const val KEY_ALLOW_NEW_ENROLL = "allowNewEnroll"
private var Bundle.allowNewEnroll: Boolean
get() = getBoolean(KEY_ALLOW_NEW_ENROLL)
set(value) = putBoolean(KEY_ALLOW_NEW_ENROLL, value)

private const val KEY_SHOW_ATTRIBUTION = "showAttribution"
private var Bundle.showAttribution: Boolean
get() = getBoolean(KEY_SHOW_ATTRIBUTION)
Expand Down

0 comments on commit af8eda6

Please sign in to comment.