[Android] Clean up AboutFragment's onAttach method.

This commit is contained in:
lioncash 2013-08-28 08:15:00 -04:00
parent 3968a5d169
commit 8ca3ed13de

View File

@ -52,16 +52,7 @@ public final class AboutFragment extends Fragment
{ {
super.onAttach(activity); super.onAttach(activity);
// This makes sure that the container activity has implemented // Cache the activity instance.
// the callback interface. If not, it throws an exception m_activity = activity;
try
{
m_activity = activity;
}
catch (ClassCastException e)
{
throw new ClassCastException(activity.toString()
+ " must implement OnGameListZeroListener");
}
} }
} }