diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java | 3 | ||||
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java index 7e926d51..37a4ab93 100644 --- a/app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java +++ b/app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java @@ -29,9 +29,6 @@ import github.daneren2005.dsub.view.UpdateView; public class DownloadFileAdapter extends SectionAdapter<DownloadFile> { public static int VIEW_TYPE_DOWNLOAD_FILE = 1; - public DownloadFileAdapter(Context context, List<DownloadFile> entries) { - super(context, entries); - } public DownloadFileAdapter(Context context, List<DownloadFile> entries, OnItemClickedListener onItemClickedListener) { super(context, entries); this.onItemClickedListener = onItemClickedListener; diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java index 36653ff5..e56a8d34 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -49,7 +49,7 @@ import github.daneren2005.dsub.adapter.DownloadFileAdapter; import github.daneren2005.dsub.view.SongView; import github.daneren2005.dsub.view.UpdateView; -public class DownloadFragment extends SelectRecyclerFragment<DownloadFile> { +public class DownloadFragment extends SelectRecyclerFragment<DownloadFile> implements SectionAdapter.OnItemClickedListener<DownloadFile> { private long currentRevision; private ScheduledExecutorService executorService; @@ -136,7 +136,7 @@ public class DownloadFragment extends SelectRecyclerFragment<DownloadFile> { @Override public SectionAdapter getAdapter(List<DownloadFile> objs) { - return new DownloadFileAdapter(context, objs); + return new DownloadFileAdapter(context, objs, this); } @Override |