コード例 #1
0
  @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());
    }
  }
コード例 #2
0
  @Override
  public void onDestroy() {

    super.onDestroy();

    if (mHelpPopup != null) {
      mHelpPopup.dismiss();
    }
  }