@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); mControlConfiguracion = new ControlConfiguracion(getActivity()); if (!mControlConfiguracion.isShowHelpMapa() && getView() != null) { mHelpPopup = new HelpPopup( getActivity(), getString(R.string.mapa_message_help_punto_destino), R.layout.yellow_popup_layout); mHelpPopup.setShowListener( new ShowListener() { @Override public void onShow() { mControlConfiguracion.setShowHelpMapa(); } @Override public void onPreShow() {} @Override public void onDismiss() {} }); mHelpPopup.show(getView()); } }
@Override public void onDestroy() { super.onDestroy(); if (mHelpPopup != null) { mHelpPopup.dismiss(); } }