Fixes a crash due to class cast
This commit is contained in:
parent
c3893e85d6
commit
2a41e035f7
|
@ -284,7 +284,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
||||||
}
|
}
|
||||||
statusListAdapter.notifyDataSetChanged();
|
statusListAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
if( firstLoad)
|
if( firstLoad && getActivity() != null && getActivity().getClass().isInstance(MainActivity.class))
|
||||||
((MainActivity)context).updateHomeCounter();
|
((MainActivity)context).updateHomeCounter();
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
firstLoad = false;
|
firstLoad = false;
|
||||||
|
|
Loading…
Reference in New Issue