metalhead8816/robolectric — pull request #6 by SuperAmin (2012-12-13 22:35:33+00:00)
Title: Properly call Activity#onAttachFragment for ShadowFragment and ShadowDialogFragment

This addresses https://github.com/pivotal/robolectric/issues/378 and https://github.com/pivotal/robolectric/issues/379 that I filed.

Fixed TestFragmentManager to properly call Activity.onAttachFragment
after a Fragment's onAttach method has been called.

Fixed ShadowDialogFragment to set the Fragment's tag and also call
Activity.onAttachFragment in the show method.

Android docs: http://developer.android.com/reference/android/app/Activity.html#onAttachFragment(android.app.Fragment)
http://developer.android.com/reference/android/app/DialogFragment.html#show(android.app.FragmentManager, java.lang.String)