diff options
| author | lioncash <mathew1900@hotmail.com> | 2013-08-28 08:15:00 -0400 |
|---|---|---|
| committer | lioncash <mathew1900@hotmail.com> | 2013-08-28 08:15:00 -0400 |
| commit | 8ca3ed13decd3062e8a509ff46d15fa4eccd086e (patch) | |
| tree | c4f14843ca27e0adfe1eac02bdeac4224cb9475a /Source/Android | |
| parent | 3968a5d169fd7501b5b7acafed05861f7351333f (diff) | |
[Android] Clean up AboutFragment's onAttach method.
Diffstat (limited to 'Source/Android')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java | 13 |
1 files 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; } } |
