Skip to content

Version 2.2.2 uri load bug #1513

@JYLEE1988

Description

@JYLEE1988

Describe the bug
uri starting with file:/// is not loaded.
A change occurred in the file creation method in version 2.2.2, which is expected to be related to this.
#1466

override fun map(data: Uri, options: Options): File? {
        if (!isApplicable(data)) return null
        val uri = if (data.scheme == null) data else data.buildUpon().scheme(null).build()
        return File(uri.toString())
    }

In version 2.2.1, the uri image loads well.

To Reproduce
Try to load a uri starting with file:///.
For example file:///storage/emulated/0/android/data/{package-name}/cache/images/temp.jpg

Version
2.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that are up for grabs + are good candidates for community PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions