|
|
@@ -201,7 +201,7 @@ public abstract class ContentsBasePresenter<M extends ContentsModel, V extends I
|
|
|
|
|
|
protected void sendKakaoLink() {
|
|
|
share = new ShareKakaoTalk(view.getActivity());
|
|
|
- share.shareContents(model.getKakaoTalkShareData(), new IShareListener() {
|
|
|
+ share.shareContents(model.getContentsBean(), model.getSharePageIndex(), new IShareListener() {
|
|
|
@Override
|
|
|
public void onSuccess(String result) {
|
|
|
}
|
|
|
@@ -220,7 +220,7 @@ public abstract class ContentsBasePresenter<M extends ContentsModel, V extends I
|
|
|
|
|
|
protected void sendFaceBook() {
|
|
|
share = new ShareFacebook(view.getActivity(), getHelper(FacebookHelper.class).getCallbackManager());
|
|
|
- share.shareContents(model.getFacebookShareData(), new IShareListener() {
|
|
|
+ share.shareContents(model.getContentsBean(), model.getSharePageIndex(), new IShareListener() {
|
|
|
@Override
|
|
|
public void onSuccess(String result) {
|
|
|
showToast("", ResourceUtil.getString(R.string.share_completed_message), 1);
|
|
|
@@ -236,7 +236,7 @@ public abstract class ContentsBasePresenter<M extends ContentsModel, V extends I
|
|
|
|
|
|
protected void sendClipBoardCopy() {
|
|
|
share = new ShareClipBoard(view.getActivity());
|
|
|
- share.shareContents(model.getUrlCopyShareData(), new IShareListener() {
|
|
|
+ share.shareContents(model.getContentsBean(), model.getSharePageIndex(), new IShareListener() {
|
|
|
@Override
|
|
|
public void onSuccess(String result) {
|
|
|
showToast("", ResourceUtil.getString(R.string.url_copy_message), 1);
|
|
|
@@ -252,7 +252,8 @@ public abstract class ContentsBasePresenter<M extends ContentsModel, V extends I
|
|
|
|
|
|
protected void sendEmail() {
|
|
|
String subject = ResourceUtil.getString(R.string.share_title, model.getContentsBean().getTitle());
|
|
|
- String contents = model.getEmailShareData();
|
|
|
+ String url = model.getContentsBean().getContentsUrlWithParamForShare(model.getSharePageIndex());
|
|
|
+ String contents = ResourceUtil.getString(R.string.share_current_page_contents, model.getContentsBean().getTitle(), url);
|
|
|
onCommand(new EmailSendingCommand("", subject, contents));
|
|
|
}
|
|
|
|