Store total chapters from MAL and automatically set as completed if it's the last chapter. Other minor changes

This commit is contained in:
inorichi
2015-12-31 19:15:24 +01:00
parent f26a60f1ba
commit f9a97631f2
13 changed files with 181 additions and 51 deletions
@@ -81,10 +81,15 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
@Override
public void onDestroyView() {
appBar.removeView(tabs);
EventBus.getDefault().removeStickyEvent(LibraryMangasEvent.class);
super.onDestroyView();
}
@Override
public void onPause() {
EventBus.getDefault().removeStickyEvent(LibraryMangasEvent.class);
super.onPause();
}
@Override
public void onSaveInstanceState(Bundle bundle) {
activeCategory = viewPager.getCurrentItem();