Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Simplify onAttach for CPUSettingsFragment and VideoSettings…
…Fragment
  • Loading branch information
lioncash committed Aug 27, 2013
1 parent 76f20cc commit 4a863c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
Expand Up @@ -57,16 +57,8 @@ public void onAttach(Activity activity)
{
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());
}
// Cache the activity instance.
m_activity = activity;
}

@Override
Expand Down
Expand Up @@ -202,16 +202,8 @@ public void onAttach(Activity activity)
{
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());
}
// Cache the activity instance.
m_activity = activity;
}

@Override
Expand Down

0 comments on commit 4a863c8

Please sign in to comment.