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