implement share/set unread for headline context menu

This commit is contained in:
Andrew Dolgov 2011-11-30 21:48:12 +03:00
parent f242dcde6a
commit ec7f489c6d

View File

@ -1239,6 +1239,22 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
} }
} }
return true; 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; return true;