|
|
@ -764,11 +764,19 @@ public class KYCIDTypeFragment extends BaseFragment implements KYCV3PresenterInt |
|
|
|
|
|
|
|
private void requestToCropImage(int currentRequest) { |
|
|
|
this.currentRequest = currentRequest; |
|
|
|
CropImage.activity(photoURI) |
|
|
|
.setInitialCropWindowPaddingRatio(0) |
|
|
|
.setAspectRatio(16,9) |
|
|
|
.setCropMenuCropButtonTitle(getString(R.string.done_text)) |
|
|
|
.start(getContext(), this); |
|
|
|
if (currentRequest == CAMERA_REQUEST_ADDITIONAL_ID || |
|
|
|
currentRequest == CAMERA_REQUEST_ADDITIONAL_ID_BACK || |
|
|
|
currentRequest == CAMERA_REQUEST_FACE_PHOTO) |
|
|
|
CropImage.activity(photoURI) |
|
|
|
.setCropMenuCropButtonTitle(getString(R.string.done_text)) |
|
|
|
.start(getContext(), this); |
|
|
|
else |
|
|
|
CropImage.activity(photoURI) |
|
|
|
.setBackgroundColor(getContext().getResources().getColor(R.color.blur)) |
|
|
|
.setInitialCropWindowPaddingRatio(0.05F) |
|
|
|
.setAspectRatio(4, 3) |
|
|
|
.setCropMenuCropButtonTitle(getString(R.string.done_text)) |
|
|
|
.start(getContext(), this); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|