when clicking on labels or special feeds default to showing contents as
feeds rather than headlines or articles because of previous behavior making no sense
This commit is contained in:
parent
c12eff5369
commit
cdf9e20fc7
@ -421,13 +421,17 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
||||
if (list != null) {
|
||||
FeedCategory cat = (FeedCategory)list.getItemAtPosition(position);
|
||||
|
||||
if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES")) &&
|
||||
m_prefs.getBoolean("browse_cats_like_feeds", false)) {
|
||||
|
||||
m_activity.openFeedArticles(new Feed(cat.id, cat.title, true));
|
||||
|
||||
} else {
|
||||
m_activity.onCatSelected(cat);
|
||||
if (cat.id < 0) {
|
||||
m_activity.onCatSelected(cat, false);
|
||||
} else {
|
||||
if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES")) &&
|
||||
m_prefs.getBoolean("browse_cats_like_feeds", false)) {
|
||||
|
||||
m_activity.openFeedArticles(new Feed(cat.id, cat.title, true));
|
||||
|
||||
} else {
|
||||
m_activity.onCatSelected(cat);
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_activity.isSmallScreen())
|
||||
|
Loading…
Reference in New Issue
Block a user