Open atul219 opened 6 years ago
getting the same issue. requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE
is always false
CropImage.activity(image) .setAspectRatio(1, 1) .start(context as Activity,this)
using the above crop in fragment.... kindly help me
issue solved for me 💯 by using the previous version implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data);
Argument 'getContext()' might be null
Condition 'requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE' is always 'false
else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) { Exception error = result.getError(); Toast.makeText(getActivity() , "Error" + error , Toast.LENGTH_SHORT).show(); }
I am not able to upload an image to firebase database. I think it might be because of 2 warning