At the very beginning of my application, I load some snippets in tabs. Here is what I download:
WishlistFragment wishlistfragment = new WishlistFragment();
Once the Fragment has been loaded and displayed, I will call this from other fragments:
wishlistfragment.adapter.notifyDataSetChanged();
The problem is that if I name it before the wish list is created / displayed, I get the following exception:
java.lang.IllegalStateException: Content view has not yet been created.
Is there a way, programmatically, to determine if a view has yet been created?
source share