From ec7f489c6d3399176a2c786ad511c7f2c5c53010 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2011 21:48:12 +0300 Subject: [PATCH] implement share/set unread for headline context menu --- src/org/fox/ttrss/MainActivity.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index dee9cdf2..aa6eaa8d 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -1239,6 +1239,22 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe } } return true; + case R.id.share_article: + if (hf != null) { + Article article = hf.getArticleAtPosition(info.position); + if (article != null) + shareArticle(article); + } + break; + case R.id.set_unread: + if (hf != null) { + Article article = hf.getArticleAtPosition(info.position); + if (article != null) { + article.unread = true; + saveArticleUnread(article); + } + } + break; } return true;