check if m_adapter is not null in setselectedfeed/cat
This commit is contained in:
parent
4efd6a5511
commit
3fa0b2591a
@ -509,9 +509,12 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSelectedCategory(FeedCategory cat) {
|
public void setSelectedCategory(FeedCategory cat) {
|
||||||
m_selectedCat = cat;
|
m_selectedCat = cat;
|
||||||
m_adapter.notifyDataSetChanged();
|
|
||||||
|
if (m_adapter != null) {
|
||||||
|
m_adapter.notifyDataSetChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FeedCategory getSelectedCategory() {
|
public FeedCategory getSelectedCategory() {
|
||||||
|
@ -743,7 +743,10 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
|||||||
|
|
||||||
public void setSelectedFeed(Feed feed) {
|
public void setSelectedFeed(Feed feed) {
|
||||||
m_selectedFeed = feed;
|
m_selectedFeed = feed;
|
||||||
m_adapter.notifyDataSetChanged();
|
|
||||||
|
if (m_adapter != null) {
|
||||||
|
m_adapter.notifyDataSetChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user