aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-18 15:09:58 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-18 15:09:58 -0700
commitbd78e1422b403946ba0b1a44388fe35dc9308f23 (patch)
tree8e0f16bfb2c260312b13ee74cd21e4ce7d3e7376 /src/github
parent3b6151bf21ec988f8013e5700ef48a7788d2e266 (diff)
downloaddsub-bd78e1422b403946ba0b1a44388fe35dc9308f23.tar.gz
dsub-bd78e1422b403946ba0b1a44388fe35dc9308f23.tar.bz2
dsub-bd78e1422b403946ba0b1a44388fe35dc9308f23.zip
Add ability for ListFragment to do cleanup after refresh
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectListFragment.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectListFragment.java b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
index 57e3e2d2..0852e6f1 100644
--- a/src/github/daneren2005/dsub/fragments/SelectListFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
@@ -136,6 +136,8 @@ public abstract class SelectListFragment<T> extends SubsonicFragment implements
if (result != null && !result.isEmpty()) {
listView.setAdapter(adapter = getAdapter(result));
listView.setVisibility(View.VISIBLE);
+
+ onFinishRefresh();
} else {
setEmpty(true);
}
@@ -148,4 +150,8 @@ public abstract class SelectListFragment<T> extends SubsonicFragment implements
public abstract ArrayAdapter getAdapter(List<T> objs);
public abstract List<T> getObjects(MusicService musicService, boolean refresh, ProgressListener listener) throws Exception;
public abstract int getTitleResource();
+
+ public void onFinishRefresh() {
+
+ }
}