@Override public void onAttach(Context context) { super.onAttach(context); try { mListener = (SectionInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException( context.toString() + " must implement SectionInteractionListener"); } mListener.onSectionAttached(getArguments().getInt(ARG_SECTION_NUMBER)); }
protected void sendCommand(RequestEngine.Command command) { mListener.sendCommand(command); }