示例#1
0
  public static String getDownloadedFilePath(Context context, DownloadInfo info) {
    if (WallpaperUtils.isWallpaper(info)) {
      return WallpaperUtils.getWallPaperPath(info.product_id);
    }

    String id = null == info ? null : info.product_id;
    if (TextUtils.isEmpty(id)) {
      return context.getFilesDir() + File.separator + "downloaded_resource";
    } else {
      return context.getFilesDir() + File.separator + "downloaded_resource" + File.separator + id;
    }
  }