Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing extension on path below Android 10 #138

Closed
MdFarhanRaja opened this issue Jun 5, 2021 · 2 comments · Fixed by #139
Closed

Missing extension on path below Android 10 #138

MdFarhanRaja opened this issue Jun 5, 2021 · 2 comments · Fixed by #139
Assignees

Comments

@MdFarhanRaja
Copy link

  • Lib Version 3.1.1

On Button Click

    CropImage.activity()
        .setGuidelines(CropImageView.Guidelines.ON)
        .setFixAspectRatio(true)
        .setCropShape(cropShape)
        .setOutputCompressQuality(50)
        .setOutputCompressFormat(Bitmap.CompressFormat.JPEG)
        .setAspectRatio(1, 1)
        .start(activity)

onActivityResult

    val result: CropImage.ActivityResult = CropImage.getActivityResult(data)!!
    val resultUri: Uri? = result?.uriContent
    val resultFilePath: String? = result?.getUriFilePath(mContext, true)
    val file = File(resultFilePath)

File absolute path
/data/user/0/com.kw.wanderer/cache/temp_file_20210531_192600.

Not getting file extension on below all android 10 devices.

@Canato Canato self-assigned this Jun 5, 2021
@Canato Canato added the pinned label Jun 5, 2021
@Canato
Copy link
Member

Canato commented Jun 5, 2021

Could reproduce, will check during the week.

Thanks!

@Canato
Copy link
Member

Canato commented Jun 5, 2021

Ok. already did the fix, was easier than I expected, still need to run some tests before merge, so will hold until Monday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants