Update repo fragment and adapter

This commit is contained in:
topjohnwu
2017-07-18 23:18:57 +08:00
parent 6933bcf7bb
commit 10efe3859d
7 changed files with 180 additions and 373 deletions
@@ -31,7 +31,7 @@ public abstract class DownloadReceiver extends BroadcastReceiver {
switch (status) {
case DownloadManager.STATUS_SUCCESSFUL:
Uri uri = Uri.parse(c.getString(c.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI)));
onDownloadDone(uri, context);
onDownloadDone(uri);
break;
default:
Toast.makeText(context, R.string.download_file_error, Toast.LENGTH_LONG).show();
@@ -52,5 +52,5 @@ public abstract class DownloadReceiver extends BroadcastReceiver {
mFilename = filename;
}
public abstract void onDownloadDone(Uri uri, Context context);
public abstract void onDownloadDone(Uri uri);
}