You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am using this library with tabbed fragments. These fragments receive online data using retrofit.
The problem is when i launch the app and i immediately switch from the first fragment to the next fragment from the bottomoNavigation and the first fragment was still loading data the app crushes at the point where i inititialize the adaptar.
mAdapter = new CardViewAdapter(getContext(), R.layout.card_view, roundboboffers.getResponse().getDestinations());
But when i wait for the fragment to load data first it works fine.
i've tried to do this in the onCreateView() but all in the vein
if (v == null) {
v = inflater.inflate(R.layout.activity_main_hometest, container, false);
}else{
((ViewGroup)v.getParent()).removeView(v);
}
The text was updated successfully, but these errors were encountered:
Hey,
Am using this library with tabbed fragments. These fragments receive online data using retrofit.
The problem is when i launch the app and i immediately switch from the first fragment to the next fragment from the bottomoNavigation and the first fragment was still loading data the app crushes at the point where i inititialize the adaptar.
mAdapter = new CardViewAdapter(getContext(), R.layout.card_view, roundboboffers.getResponse().getDestinations());
But when i wait for the fragment to load data first it works fine.
i've tried to do this in the onCreateView() but all in the vein
The text was updated successfully, but these errors were encountered: