All chapter filters are now saved

This commit is contained in:
inorichi
2016-01-29 19:36:08 +01:00
parent f19889c222
commit c03495be94
5 changed files with 54 additions and 22 deletions
@@ -48,9 +48,14 @@ public class WebtoonHolder extends RecyclerView.ViewHolder {
}
});
// Avoid to create a lot of view holders taking all the screen height,
// saving memory and a possible OOM
container.setMinimumHeight(view.getResources().getDisplayMetrics().heightPixels);
// Avoid to create a lot of view holders taking twice the screen height,
// saving memory and a possible OOM. When the first image is loaded in this holder,
// the minimum size will be removed.
// Doing this we get sequential holder instantiation.
container.setMinimumHeight(view.getResources().getDisplayMetrics().heightPixels * 2);
// Leave some space between progress bars
progressBar.setMinimumHeight(300);
container.setOnTouchListener(touchListener);
retryButton.setOnTouchListener((v, event) -> {
@@ -109,6 +109,7 @@ public class WebtoonReader extends BaseReader {
recycler.clearOnScrollListeners();
adapter.setPages(pages);
recycler.setAdapter(adapter);
updatePageNumber();
setScrollListener();
observeStatus(0);
}