mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 21:41:50 +01:00
Can now mark as read / unread
This commit is contained in:
parent
aac6b242a0
commit
ba0f3778ce
@ -140,5 +140,10 @@ public class RecentChaptersFragment extends BaseRxFragment<RecentChaptersPresent
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean onMarkAsUnread(Observable<Chapter> chapters) {
|
||||
getPresenter().markChaptersRead(chapters, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user