diff options
author | Andrew Dolgov <[email protected]> | 2015-02-12 21:03:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-02-12 21:03:16 +0300 |
commit | b099a8e03089e4fd41971748a1ec1aaa07275082 (patch) | |
tree | 4a3f662b10ae883713868d992ffe1ae7ba0178ba /org.fox.ttrss/src/main | |
parent | d544ea76892f85c5501ef8c817f607872cc0ba0e (diff) |
set article unread after it has been selected in headlines list
Diffstat (limited to 'org.fox.ttrss/src/main')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java index 56ecafdd..3dbc47f3 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java @@ -438,11 +438,6 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe } */ public void onArticleSelected(Article article, boolean open) { - if (article.unread) { - article.unread = false; - saveArticleUnread(article); - } - if (open) { HeadlinesFragment hf = (HeadlinesFragment)getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES); @@ -472,7 +467,12 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe } else { invalidateOptionsMenu(); - } + + if (article.unread) { + article.unread = false; + saveArticleUnread(article); + } + } } @Override |