From 349dc9d797386eb4e3ed9e0235e753f5bf2533b1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 20 Sep 2012 09:14:34 +0400 Subject: [PATCH] fix for opening category in proper mode from feedsfragment --- src/org/fox/ttrss/FeedsFragment.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index f7376a88..2ac6f617 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -259,7 +259,14 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh cat.id = feed.id; cat.title = feed.title; - m_activity.onCatSelected(cat); + if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES")) && + m_prefs.getBoolean("browse_cats_like_feeds", false)) { + + m_activity.openFeedArticles(feed); + + } else { + m_activity.onCatSelected(cat); + } } else { if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES"))) { m_activity.openFeedArticles(feed);