@Override
 public void onResume() {
   super.onResume();
   CalendarSettingsActivity activity = (CalendarSettingsActivity) getActivity();
   if (!activity.isMultiPane()) {
     activity.setTitle(R.string.quick_response_settings_title);
   }
 }
 @Override
 public void onAttach(Activity activity) {
   super.onAttach(activity);
   ((CalendarSettingsActivity) activity).hideMenuButtons();
 }