I want to restore (into onRestoreInstanceState) some datas, and more precisely an array with local files path. This array is used by my adapter to show images (local):
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
....
mPicturesList = savedInstanceState.getParcelableArrayList(BUNDLE_KEY_INPUT_FILE_PATH);
if (mPicturesList != null && mPicturesList.size() > 0) {
// Refresh list
mItemPostPictureAdapter.notifyDataSetChanged();
}
super.onRestoreInstanceState(savedInstanceState);
}
Unfortunately my list is never refresh from here, I don't know why. I put a breakpoint in my adapter, and it's never called here.
In normal process, the refresh list works perfectly, but not from onRestoreInstanceState() function...