Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created December 11, 2017 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchtabian/b6b4c8c60d8481288539aa789d0c45ae to your computer and use it in GitHub Desktop.
Save mitchtabian/b6b4c8c60d8481288539aa789d0c45ae to your computer and use it in GitHub Desktop.
@Override
public void onAttach(Context context) {
super.onAttach(context);
try{
mOnInputListener = (OnInputListener) getActivity();
}catch (ClassCastException e){
Log.e(TAG, "onAttach: ClassCastException: " + e.getMessage() );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment