CB-1888: Can't add a Photo from a HTTPS address to Contact

This commit is contained in:
Simon MacDonald 2012-11-21 11:27:25 -05:00
parent d9107bcac6
commit 538e90f23a

View File

@ -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();
}