Loading core/java/android/app/DownloadManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -923,7 +923,11 @@ public class DownloadManager { if (destinationType == Downloads.Impl.DESTINATION_EXTERNAL) { // return stored destination for legacy external download return Uri.fromFile(new File(getUnderlyingString(Downloads.Impl._DATA))).toString(); String localPath = getUnderlyingString(Downloads.Impl._DATA); if (localPath == null) { return null; } return Uri.fromFile(new File(localPath)).toString(); } // return content URI for cache download Loading Loading
core/java/android/app/DownloadManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -923,7 +923,11 @@ public class DownloadManager { if (destinationType == Downloads.Impl.DESTINATION_EXTERNAL) { // return stored destination for legacy external download return Uri.fromFile(new File(getUnderlyingString(Downloads.Impl._DATA))).toString(); String localPath = getUnderlyingString(Downloads.Impl._DATA); if (localPath == null) { return null; } return Uri.fromFile(new File(localPath)).toString(); } // return content URI for cache download Loading