mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
CB-1888: Can't add a Photo from a HTTPS address to Contact
This commit is contained in:
parent
68161d2714
commit
5bebf11b37
@ -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