|
|
@@ -502,6 +502,7 @@ public class ActInvitation extends BaseActivity {
|
|
|
break;
|
|
|
}
|
|
|
UMImage umImage;
|
|
|
+ UMWeb umWeb = new UMWeb(realUrl);
|
|
|
switch (type) {
|
|
|
case DialogShare.QQ:
|
|
|
case DialogShare.WX:
|
|
|
@@ -509,12 +510,11 @@ public class ActInvitation extends BaseActivity {
|
|
|
break;
|
|
|
default:
|
|
|
umImage = new UMImage(activity, R.mipmap.icon);
|
|
|
+ umWeb.setTitle(activity.getResources().getString(R.string.app_name));
|
|
|
+ umWeb.setThumb(umImage);
|
|
|
+ umWeb.setDescription(TextUtils.isEmpty(description) ? activity.getResources().getString(R.string.app_name) : description);
|
|
|
break;
|
|
|
}
|
|
|
- UMWeb umWeb = new UMWeb(realUrl);
|
|
|
- umWeb.setTitle(activity.getResources().getString(R.string.app_name));
|
|
|
- umWeb.setThumb(umImage);
|
|
|
- umWeb.setDescription(TextUtils.isEmpty(description) ? activity.getResources().getString(R.string.app_name) : description);
|
|
|
switch (type) {
|
|
|
case DialogShare.QQ:
|
|
|
case DialogShare.WX:
|
|
|
@@ -524,6 +524,8 @@ public class ActInvitation extends BaseActivity {
|
|
|
.setCallback(new CommonUtil.CommonUMShareListener())
|
|
|
.share();
|
|
|
break;
|
|
|
+ case DialogShare.WEIXIN_CIRCLE://微信朋友圈分享时只会显示标题,所以这里使用描述
|
|
|
+ umWeb.setTitle(TextUtils.isEmpty(description) ? activity.getResources().getString(R.string.app_name) : description);
|
|
|
default:
|
|
|
new ShareAction(activity)
|
|
|
.setPlatform(share_media)
|