We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. ImageView.load("file:///data/user/0/foo/cache/1.jpg") fails with
ImageView.load("file:///data/user/0/foo/cache/1.jpg")
java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but was 'file' at okhttp3.HttpUrl$Builder.parse(HttpUrl.java:1328)
because it is directly handed down to OkHttp3.
Describe the solution you'd like A check if the Uri starts with *file:// could map to load(file: File) instead.
The text was updated successfully, but these errors were encountered:
Tracking support for this here: #24
The current workaround is to use ImageView.load(Uri.parse("file:///data/user/0/foo/cache/1.jpg")). The fix for this will likely make it into 0.7.0.
ImageView.load(Uri.parse("file:///data/user/0/foo/cache/1.jpg"))
0.7.0
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
ImageView.load("file:///data/user/0/foo/cache/1.jpg")
fails withbecause it is directly handed down to OkHttp3.
Describe the solution you'd like
A check if the Uri starts with *file:// could map to load(file: File) instead.
The text was updated successfully, but these errors were encountered: