(String finalPath)
| 205 | } |
| 206 | |
| 207 | void cancel(String finalPath) { |
| 208 | long id = findUri(Uri.fromFile(new File(toTmpPath(finalPath))).toString()); |
| 209 | if (id >= 0) { |
| 210 | dm.remove(id); |
| 211 | onDownloadComplete(ptr, toTmpPath(finalPath), finalPath, false); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | native void onDownloadAdded(long handler, String path, |
| 216 | long size, long position); |