From b147b3c07a4a7eea9fe1111c3e91e965dc05251f Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 31 Aug 2019 00:56:21 +0200 Subject: [PATCH] Added fast scroll to item list --- .../danoeh/antennapod/fragment/FeedItemlistFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java index c23efc2ff..706829f8b 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java @@ -17,6 +17,7 @@ import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; +import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ImageButton; import android.widget.ImageView; @@ -139,6 +140,13 @@ public class FeedItemlistFragment extends ListFragment { feedID = args.getLong(ARGUMENT_FEED_ID); } + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View view = super.onCreateView(inflater, container, savedInstanceState); + ((ListView) view.findViewById(android.R.id.list)).setFastScrollEnabled(true); + return view; + } + @Override public void onStart() { super.onStart();