From 65a2345bf744950645c47dae16aa02258b200886 Mon Sep 17 00:00:00 2001 From: inorichi Date: Mon, 7 Dec 2015 20:25:42 +0100 Subject: [PATCH] Minor changes --- .../mangafeed/ui/manga/chapter/ChaptersFragment.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersFragment.java index a0cddef161..06c7dde1ea 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersFragment.java @@ -279,13 +279,7 @@ public class ChaptersFragment extends BaseRxFragment implemen DownloadService.start(getActivity()); Observable observable = chapters - .doOnNext(chapter -> { - // Force update of the UI. We already receive updates when it's added to the queue, - // but sometimes it does nothing. - // TODO remove this when status updates works properly - chapter.status = Download.QUEUE; - onChapterStatusChange(chapter); - }); + .doOnCompleted(adapter::notifyDataSetChanged); getPresenter().downloadChapters(observable); closeActionMode(); @@ -311,8 +305,8 @@ public class ChaptersFragment extends BaseRxFragment implemen .doOnNext(chapter -> { dialog.incrementProgress(1); chapter.status = Download.NOT_DOWNLOADED; - onChapterStatusChange(chapter); }) + .doOnCompleted(adapter::notifyDataSetChanged) .finallyDo(dialog::dismiss); getPresenter().deleteChapters(observable);