aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-18 15:20:47 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-18 15:20:47 -0700
commite4e03c33447c0bccdba8dbcf2c1f6334793c80ab (patch)
tree3c27863302c8eb8c2844d3b229cd0e4babc4186a
parent333960288ec17884cea0cefe3122bc074692d9aa (diff)
downloaddsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.tar.gz
dsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.tar.bz2
dsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.zip
Apply fast scroll work around for generic case, call finish before setting list visible
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectListFragment.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectListFragment.java b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
index 0852e6f1..a338b8d9 100644
--- a/src/github/daneren2005/dsub/fragments/SelectListFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
@@ -134,10 +134,13 @@ public abstract class SelectListFragment<T> extends SubsonicFragment implements
@Override
protected void done(List<T> result) {
if (result != null && !result.isEmpty()) {
+ // Toggle fast scroll to get around issue when length of list changes
+ listView.setFastScrollEnabled(false);
listView.setAdapter(adapter = getAdapter(result));
- listView.setVisibility(View.VISIBLE);
+ listView.setFastScrollEnabled(true);
onFinishRefresh();
+ listView.setVisibility(View.VISIBLE);
} else {
setEmpty(true);
}