Mark posts when opened through an inner link

filtering
Floens 10 years ago
parent 05275eb7bf
commit 4a82478758
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java
  2. 1
      Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java

@ -408,6 +408,7 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt
} else if (linkable.type == PostLinkable.Type.THREAD) { } else if (linkable.type == PostLinkable.Type.THREAD) {
PostLinkable.ThreadLink link = (PostLinkable.ThreadLink) linkable.value; PostLinkable.ThreadLink link = (PostLinkable.ThreadLink) linkable.value;
Loadable thread = new Loadable(link.board, link.threadId); Loadable thread = new Loadable(link.board, link.threadId);
thread.markedNo = link.postId;
threadPresenterCallback.showThread(thread); threadPresenterCallback.showThread(thread);
} }
@ -420,7 +421,6 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt
@Override @Override
public void onShowPostReplies(Post post) { public void onShowPostReplies(Post post) {
List<Post> posts = new ArrayList<>(); List<Post> posts = new ArrayList<>();
for (int no : post.repliesFrom) { for (int no : post.repliesFrom) {
Post replyPost = findPostById(no); Post replyPost = findPostById(no);

@ -107,7 +107,6 @@ public class ViewThreadController extends ThreadController implements ThreadLayo
@Override @Override
public void showThread(final Loadable threadLoadable) { public void showThread(final Loadable threadLoadable) {
// TODO implement, scroll to post
new AlertDialog.Builder(context) new AlertDialog.Builder(context)
.setNegativeButton(R.string.cancel, null) .setNegativeButton(R.string.cancel, null)
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {

Loading…
Cancel
Save