Loading core/java/android/net/DownloadManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -286,8 +286,8 @@ public class DownloadManager { throw new NullPointerException(); } String scheme = uri.getScheme(); if (scheme == null || !scheme.equals("http")) { throw new IllegalArgumentException("Can only download HTTP URIs: " + uri); if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) { throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri); } mUri = uri; } Loading Loading
core/java/android/net/DownloadManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -286,8 +286,8 @@ public class DownloadManager { throw new NullPointerException(); } String scheme = uri.getScheme(); if (scheme == null || !scheme.equals("http")) { throw new IllegalArgumentException("Can only download HTTP URIs: " + uri); if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) { throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri); } mUri = uri; } Loading