예제 #1
0
 @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));
 }
예제 #2
0
 protected void sendCommand(RequestEngine.Command command) {
   mListener.sendCommand(command);
 }