Short version:
I have a fragment that maintains a ViewPager
for displaying two other fragments, let\'s call them FragmentOne
a
It appears to be a bug in support library. The change below solves the issue.
// FragmentOne.java
@Override
public void onResume() {
super.onResume();
Handler handler = getActivity().getWindow().getDecorView().getHandler();
handler.post(new Runnable() {
@Override public void run() {
// initialize the loader here!
getLoaderManager().initLoader(0, null, FragmentOne.this);
}
});
}