Show batoto staff notice if updating chapters failed

This commit is contained in:
Robin Appelman
2016-02-11 22:59:24 +01:00
parent cb3c3af865
commit 393b4916f6
4 changed files with 20 additions and 4 deletions

View File

@@ -161,9 +161,9 @@ public class ChaptersFragment extends BaseRxFragment<ChaptersPresenter> implemen
swipeRefresh.setRefreshing(false);
}
public void onFetchChaptersError() {
public void onFetchChaptersError(Throwable error) {
swipeRefresh.setRefreshing(false);
ToastUtil.showShort(getContext(), R.string.fetch_chapters_error);
ToastUtil.showShort(getContext(), error.getMessage());
}
public boolean isCatalogueManga() {

View File

@@ -67,7 +67,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
startableFirst(FETCH_CHAPTERS,
this::getOnlineChaptersObs,
(view, result) -> view.onFetchChaptersDone(),
(view, error) -> view.onFetchChaptersError());
(view, error) -> view.onFetchChaptersError(error));
startableLatestCache(CHAPTER_STATUS_CHANGES,
this::getChapterStatusObs,