From e4e03c33447c0bccdba8dbcf2c1f6334793c80ab Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 18 Jul 2014 15:20:47 -0700 Subject: Apply fast scroll work around for generic case, call finish before setting list visible --- src/github/daneren2005/dsub/fragments/SelectListFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/github') 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 extends SubsonicFragment implements @Override protected void done(List 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); } -- cgit v1.2.3