aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-08-04 12:24:30 -0700
committerScott Jackson <daneren2005@gmail.com>2015-08-04 12:24:30 -0700
commitae9c7f02650836581f21423d87b3a6115c197fed (patch)
tree900f67d4e010845ae2ff53a6ddf6bf035f4d3ec9 /app/src/main
parent364ab1f49d73523273ed4324c15367ccb5cfd506 (diff)
downloaddsub-ae9c7f02650836581f21423d87b3a6115c197fed.tar.gz
dsub-ae9c7f02650836581f21423d87b3a6115c197fed.tar.bz2
dsub-ae9c7f02650836581f21423d87b3a6115c197fed.zip
Add missing context menus for download fragment
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/adapter/DownloadFileAdapter.java3
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java4
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