|
|
@@ -14,6 +14,7 @@ import kr.co.zumo.app.lifeplus.helper.NavigationBar;
|
|
|
import kr.co.zumo.app.lifeplus.tool.IShareListener;
|
|
|
import kr.co.zumo.app.lifeplus.tool.Share;
|
|
|
import kr.co.zumo.app.lifeplus.tool.ShareClipBoard;
|
|
|
+import kr.co.zumo.app.lifeplus.tool.ShareEmail;
|
|
|
import kr.co.zumo.app.lifeplus.tool.ShareFacebook;
|
|
|
import kr.co.zumo.app.lifeplus.tool.ShareKakaoTalk;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
@@ -279,11 +280,23 @@ public abstract class ContentsBasePresenter<M extends ContentsBaseModel, V exten
|
|
|
|
|
|
protected void sendEmail() {
|
|
|
loadShareCoin(Share.TYPE_EMAIL);
|
|
|
- String subject;
|
|
|
- subject = ResourceUtil.getString(R.string.share_title, model.getShareContents().getTitle());
|
|
|
- String url = model.getShareContents().getContentsUrlWithParamForShare(model.getSharePageIndex());
|
|
|
- String contents = ResourceUtil.getString(R.string.share_current_page_contents, subject, url);
|
|
|
- onCommand(new EmailSendingCommand("", subject, contents));
|
|
|
+
|
|
|
+ share = new ShareEmail(view.getActivity());
|
|
|
+ share.shareContents(model.getShareContents(), model.getSharePageIndex(), new IShareListener() {
|
|
|
+ @Override
|
|
|
+ public void onSuccess(String result) {
|
|
|
+ String subject;
|
|
|
+ subject = ResourceUtil.getString(R.string.share_title, model.getShareContents().getTitle());
|
|
|
+ String url = result;
|
|
|
+ String contents = ResourceUtil.getString(R.string.share_current_page_contents, subject, url);
|
|
|
+ onCommand(new EmailSendingCommand("", subject, contents));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFailure(int errorCode, String result) {
|
|
|
+ //
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
protected void showShareToast(String title, String detail, @Nullable int copyToastFlag) {
|