[Android] Clean up AboutFragment's onAttach method.
This commit is contained in:
parent
3968a5d169
commit
8ca3ed13de
|
@ -52,16 +52,7 @@ public final class AboutFragment extends Fragment
|
|||
{
|
||||
super.onAttach(activity);
|
||||
|
||||
// This makes sure that the container activity has implemented
|
||||
// the callback interface. If not, it throws an exception
|
||||
try
|
||||
{
|
||||
m_activity = activity;
|
||||
}
|
||||
catch (ClassCastException e)
|
||||
{
|
||||
throw new ClassCastException(activity.toString()
|
||||
+ " must implement OnGameListZeroListener");
|
||||
}
|
||||
// Cache the activity instance.
|
||||
m_activity = activity;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue