From f83e6ec0e8c1d2d5d2847384739caa467a6fd4d5 Mon Sep 17 00:00:00 2001 From: Floens Date: Thu, 25 Jun 2015 17:32:26 +0200 Subject: [PATCH] Only show highlighting by id and tripcode in thread more --- .../floens/chan/core/presenter/ThreadPresenter.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java index 89a0cd70..ce9717c3 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java +++ b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java @@ -340,12 +340,14 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt menu.add(new FloatingMenuItem(POST_OPTION_HIDE, R.string.post_hide)); } - if (!TextUtils.isEmpty(post.id)) { - menu.add(new FloatingMenuItem(POST_OPTION_HIGHLIGHT_ID, R.string.post_highlight_id)); - } + if (loadable.isThreadMode()) { + if (!TextUtils.isEmpty(post.id)) { + menu.add(new FloatingMenuItem(POST_OPTION_HIGHLIGHT_ID, R.string.post_highlight_id)); + } - if (!TextUtils.isEmpty(post.tripcode)) { - menu.add(new FloatingMenuItem(POST_OPTION_HIGHLIGHT_TRIPCODE, R.string.post_highlight_tripcode)); + if (!TextUtils.isEmpty(post.tripcode)) { + menu.add(new FloatingMenuItem(POST_OPTION_HIGHLIGHT_TRIPCODE, R.string.post_highlight_tripcode)); + } } if (databaseManager.isSavedReply(post.board, post.no)) {