mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
CB-1888: Can't add a Photo from a HTTPS address to Contact
This commit is contained in:
parent
d9107bcac6
commit
538e90f23a
@ -1579,7 +1579,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
||||
Uri uri = Uri.parse(path);
|
||||
return mApp.getActivity().getContentResolver().openInputStream(uri);
|
||||
}
|
||||
if (path.startsWith("http:") || path.startsWith("file:")) {
|
||||
if (path.startsWith("http:") || path.startsWith("https:") || path.startsWith("file:")) {
|
||||
URL url = new URL(path);
|
||||
return url.openStream();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user