Пример #1
0
  /** Share the data by using Email. */
  private void onEmailShareEvent() {
    MixpanelUtil.Click_On_Email();
    if (!(AppClientFactory.isAnonymous())) {
      AppClientFactory.getInjector()
          .getUserService()
          .getUserProfileDetails(
              AppClientFactory.getLoggedInUser().getGooruUId(),
              new SimpleAsyncCallback<SettingDo>() {

                @Override
                public void onSuccess(SettingDo result) {
                  socialDo.setEmailId(result.getExternalId());
                  EmailShareUc emailShare =
                      new EmailShareUc(socialDo) {
                        public void triggerEmailEvent(boolean confirmStaus) {
                          triggerShareDataEvent(PlayerDataLogEvents.MAIL, confirmStaus);
                        }
                      };
                  emailShare.show();
                  emailShare.center();
                }
              });
    } else {
      LoginPopupUc popup = new LoginPopupUc();
      popup.setGlassEnabled(true);
      popup.show();
      popup.center();
    }
  }