Commit 9b535032 authored by linfeng's avatar linfeng

拍拍海报修改

parent 5d8b22c5
......@@ -50,6 +50,16 @@ public class ShareManager extends ShareAction {
.setShareboardclickCallback(boardListener);
}
public ShareManager(Activity activity, ShareBoardlistener boardListener, String copy) {
super(activity);
mActivity = activity;
this.setDisplayList(
SHARE_MEDIA.WEIXIN, SHARE_MEDIA.WEIXIN_CIRCLE, SHARE_MEDIA.WEIXIN_FAVORITE,
SHARE_MEDIA.QQ, SHARE_MEDIA.QZONE)
.addButton("复制链接", copy, "rv_share_copy", "rv_share_copy")
.setShareboardclickCallback(boardListener);
}
/**
* @param activity
......@@ -105,7 +115,6 @@ public class ShareManager extends ShareAction {
}
/**
*
* @param share_media
* @param videoUrl
* @param title
......
......@@ -346,17 +346,18 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
shareManager = new ShareManager(this, new ShareBoardlistener() {
@Override
public void onclick(SnsPlatform snsPlatform, SHARE_MEDIA share_media) {
if (snsPlatform.mShowWord.equals("生成海报")) {
ARouter.getInstance()
.build(Constance.ACTIVITY_URL_PATGENERATEPOSTER)
.withString("iconUrl", iconUrl)
.withString("content", title)
.withString("url", webUrl + "&shareType=app&code=" + code)
.withString("userName", userName)
.withString("userUrl", userUrl)
.navigation();
} else if (snsPlatform.mShowWord.equals("复制链接")) {
// if (snsPlatform.mShowWord.equals("生成海报")) {
// ARouter.getInstance()
// .build(Constance.ACTIVITY_URL_PATGENERATEPOSTER)
// .withString("iconUrl", iconUrl)
// .withString("content", title)
// .withString("url", webUrl + "&shareType=app&code=" + code)
// .withString("userName", userName)
// .withString("userUrl", userUrl)
// .navigation();
// } else
if (snsPlatform.mShowWord.equals("复制链接")) {
copyText();
} else if (snsPlatform.mShowWord.contains("微信")) {
if (!IsAppInstall.isWeixinAvilible(mActivity)) {
......@@ -402,7 +403,7 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
}
});
}
}, "rv_um_share_bill", "rv_um_share_copy");
}, "rv_um_share_copy");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment