Merge pull request #5856 from ByteHamster/load-more-filter
Don't load more and more pages when filtering
This commit is contained in:
commit
c1d766d205
|
@ -58,6 +58,7 @@ public class AllEpisodesFragment extends EpisodesListFragment {
|
||||||
feedItemFilter = new FeedItemFilter(event.filterValues.toArray(new String[0]));
|
feedItemFilter = new FeedItemFilter(event.filterValues.toArray(new String[0]));
|
||||||
SharedPreferences prefs = getActivity().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
|
SharedPreferences prefs = getActivity().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
|
||||||
prefs.edit().putString(PREF_FILTER, StringUtils.join(event.filterValues, ",")).apply();
|
prefs.edit().putString(PREF_FILTER, StringUtils.join(event.filterValues, ",")).apply();
|
||||||
|
page = 1;
|
||||||
loadItems();
|
loadItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue