|
|
@ -410,17 +410,22 @@ class StepThreeBajajFDFragment : BaseFragment() { |
|
|
|
|
|
|
|
|
|
|
|
private fun validate(): Boolean { |
|
|
|
if (binding.spDocType.text.equals(R.string.aadhar) && mapImage.size == 4) { |
|
|
|
return true |
|
|
|
} else if (mapImage.size == 3) { |
|
|
|
return true |
|
|
|
} else if (mapImage.size < 3) { |
|
|
|
if (mapImage.size == 3 && binding.spDocType.text.equals(R.string.aadhar)) { |
|
|
|
Common.showDialogValidation( |
|
|
|
activity as BajajFdMainActivity, |
|
|
|
"Upload Aadhar Images" |
|
|
|
) |
|
|
|
return false |
|
|
|
} |
|
|
|
else if (mapImage.size < 3) { |
|
|
|
Common.showDialogValidation( |
|
|
|
activity as BajajFdMainActivity, |
|
|
|
"Upload Image Not Done" |
|
|
|
"Upload All Images" |
|
|
|
) |
|
|
|
return false |
|
|
|
} |
|
|
|
else return true |
|
|
|
|
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|