From 8ca3ed13decd3062e8a509ff46d15fa4eccd086e Mon Sep 17 00:00:00 2001 From: lioncash Date: Wed, 28 Aug 2013 08:15:00 -0400 Subject: [PATCH] [Android] Clean up AboutFragment's onAttach method. --- .../org/dolphinemu/dolphinemu/AboutFragment.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java index fe5a83bf92..a5ef71c750 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java @@ -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; } }