MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / cancel

Method cancel

android/src/DownloadUtil.java:207–213  ·  view source on GitHub ↗
(String finalPath)

Source from the content-addressed store, hash-verified

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);

Callers 2

onDestroyMethod · 0.80
onClickMethod · 0.80

Calls 4

findUriMethod · 0.95
toTmpPathMethod · 0.95
onDownloadCompleteMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected