Gallery adapter (in fragment) misbehaves when Activity instance is destroyed with "Don't keep activities"
<p>I've an activity (<code>FragmentActivity</code>) which instantiates a Fragment onCreate</p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        MyFragment fragment = MyFragment.newInstance(rowId); // simply does new MyFragment();
        getSupportFragmentManager().beginTransaction().add(android.R.id.content, fragment)
                .commit();
    }
</code></pre>

<p>Fragment has the layout with few imageviews and Gallery adapter. ALL runs fine until "Don't keep activities" is enabled in developer options.</p>

<p>When enabled, the Gallery Adapter's binder is initialized and onBind gets called but images(bitmaps) don't appear. When I debug this code, all appears to be working but on UI,  images don't appear.</p>

<p>Adapter is initialized in onStart of the fragment when it reads from database:</p>

<pre><code>mPhotoAdapter = new MyPhotoAdapter(mContext, PhotosProvider.PHOTO_URI,
                        getRowId()); // rowId is retained in onSaveInstance
</code></pre>

<p>Is it still referring to some old fragment instance? I tried setting retainInstance enabled and disabled, but nothing helped.</p>
