From ba0f3778ce8156f8c435dd8bd9fab92c8d6fe6b8 Mon Sep 17 00:00:00 2001 From: NoodleMage Date: Thu, 18 Feb 2016 17:40:12 +0100 Subject: [PATCH] Can now mark as read / unread --- .../kanade/tachiyomi/ui/recent/RecentChaptersFragment.java | 5 +++++ .../eu/kanade/tachiyomi/ui/recent/RecentChaptersHolder.java | 6 +----- build.gradle | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersFragment.java b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersFragment.java index efc7847c9a..f14b6600c7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersFragment.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersFragment.java @@ -140,5 +140,10 @@ public class RecentChaptersFragment extends BaseRxFragment chapters) { + getPresenter().markChaptersRead(chapters, false); + return true; + } + } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersHolder.java b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersHolder.java index 88a106fa6f..0db33f2ac3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersHolder.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersHolder.java @@ -15,7 +15,6 @@ import eu.kanade.tachiyomi.data.database.models.Chapter; import eu.kanade.tachiyomi.data.database.models.MangaChapter; import eu.kanade.tachiyomi.data.download.model.Download; import eu.kanade.tachiyomi.ui.base.adapter.FlexibleViewHolder; -import eu.kanade.tachiyomi.util.ToastUtil; import rx.Observable; public class RecentChaptersHolder extends FlexibleViewHolder { @@ -167,12 +166,9 @@ public class RecentChaptersHolder extends FlexibleViewHolder { case R.id.action_delete: return adapter.getFragment().onDelete(chapterObservable, mangaChapter.manga); case R.id.action_mark_as_read: - ToastUtil.showShort(context, "Mark as read"); return adapter.getFragment().onMarkAsRead(chapterObservable); case R.id.action_mark_as_unread: - ToastUtil.showShort(context, "Mark as unread does not work, yet...."); - return true; -// return adapter.getFragment().onMarkAsUnread(chapterObservable); + return adapter.getFragment().onMarkAsUnread(chapterObservable); } return false; }); diff --git a/build.gradle b/build.gradle index e833b0f878..11eb25d59a 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.0.0-beta4' + classpath 'com.android.tools.build:gradle:2.0.0-beta2' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'me.tatarka:gradle-retrolambda:3.2.4' classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'