summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorlioncash <mathew1900@hotmail.com>2013-08-28 08:15:00 -0400
committerlioncash <mathew1900@hotmail.com>2013-08-28 08:15:00 -0400
commit8ca3ed13decd3062e8a509ff46d15fa4eccd086e (patch)
treec4f14843ca27e0adfe1eac02bdeac4224cb9475a /Source
parent3968a5d169fd7501b5b7acafed05861f7351333f (diff)
[Android] Clean up AboutFragment's onAttach method.
Diffstat (limited to 'Source')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java13
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;
}
}