Show page number, improve the load of the first image of a chapter

This commit is contained in:
inorichi
2015-10-21 16:40:50 +02:00
parent 74da971b2e
commit 4c786077a8
6 changed files with 87 additions and 19 deletions
@@ -29,6 +29,10 @@ public class ReaderPageAdapter extends SmartFragmentStatePagerAdapter {
return ReaderPageFragment.newInstance(pages.get(position));
}
public List<Page> getPages() {
return pages;
}
public void setPages(List<Page> pages) {
this.pages = pages;
notifyDataSetChanged();
@@ -36,7 +40,6 @@ public class ReaderPageAdapter extends SmartFragmentStatePagerAdapter {
public void replacePage(int position, Page page) {
pages.set(position, page);
notifyDataSetChanged();
ReaderPageFragment fragment = (ReaderPageFragment)getRegisteredFragment(position);
if (fragment != null) {