feed & cat fragments: do not try to refresh if not added
This commit is contained in:
parent
05dec34be2
commit
21816c331c
@ -275,6 +275,8 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
|
||||
} */
|
||||
|
||||
public void refresh(boolean background) {
|
||||
if (!isAdded()) return;
|
||||
|
||||
if (m_swipeLayout != null) m_swipeLayout.setRefreshing(true);
|
||||
|
||||
CatsRequest req = new CatsRequest(getActivity().getApplicationContext());
|
||||
|
@ -384,6 +384,8 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
|
||||
|
||||
@SuppressWarnings({ "serial" })
|
||||
public void refresh(boolean background) {
|
||||
if (!isAdded()) return;
|
||||
|
||||
//FeedCategory cat = m_onlineServices.getActiveCategory();
|
||||
|
||||
if (m_swipeLayout != null) m_swipeLayout.setRefreshing(true);
|
||||
|
Loading…
Reference in New Issue
Block a user