Pass the destination File to the callback

The current argument is unused and it should have been removed
with commit 81229329f1
("Generate download clients using a builder class"). Instead of
removing it completely, use it to pass the File of the download.
This commit is contained in:
Gabriele M
2017-07-09 20:57:37 +02:00
parent e1dd2a8d73
commit e34334a1d7
5 changed files with 5 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ public class UpdaterController implements UpdaterControllerInt {
}
@Override
public void onSuccess(String body) {
public void onSuccess(File destination) {
Log.d(TAG, "Download complete");
UpdateDownload update = mDownloads.get(downloadId).mUpdate;
update.setStatus(UpdateStatus.VERIFYING);