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,6 +421,9 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
|||||||
if (list != null) {
|
if (list != null) {
|
||||||
FeedCategory cat = (FeedCategory)list.getItemAtPosition(position);
|
FeedCategory cat = (FeedCategory)list.getItemAtPosition(position);
|
||||||
|
|
||||||
|
if (cat.id < 0) {
|
||||||
|
m_activity.onCatSelected(cat, false);
|
||||||
|
} else {
|
||||||
if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES")) &&
|
if ("ARTICLES".equals(m_prefs.getString("default_view_mode", "HEADLINES")) &&
|
||||||
m_prefs.getBoolean("browse_cats_like_feeds", false)) {
|
m_prefs.getBoolean("browse_cats_like_feeds", false)) {
|
||||||
|
|
||||||
@ -429,6 +432,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
|||||||
} else {
|
} else {
|
||||||
m_activity.onCatSelected(cat);
|
m_activity.onCatSelected(cat);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_activity.isSmallScreen())
|
if (!m_activity.isSmallScreen())
|
||||||
m_selectedCat = cat;
|
m_selectedCat = cat;
|
||||||
|
Loading…
Reference in New Issue
Block a user