diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-18 15:20:47 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-18 15:20:47 -0700 |
commit | e4e03c33447c0bccdba8dbcf2c1f6334793c80ab (patch) | |
tree | 3c27863302c8eb8c2844d3b229cd0e4babc4186a /src | |
parent | 333960288ec17884cea0cefe3122bc074692d9aa (diff) | |
download | dsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.tar.gz dsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.tar.bz2 dsub-e4e03c33447c0bccdba8dbcf2c1f6334793c80ab.zip |
Apply fast scroll work around for generic case, call finish before setting list visible
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectListFragment.java | 5 |
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);
}
|