Commit e983a04d authored by jyx's avatar jyx

修改分享内容

parent 880c170f
......@@ -179,8 +179,11 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, Platform
private fun invitedFriends() {
val wechatSp = Platform.ShareParams()
wechatSp.shareType = Platform.SHARE_IMAGE
wechatSp.imageData = ImageUtil.drawableToBitmap(ContextCompat.getDrawable(mContext, R.mipmap.ic_launcher))
wechatSp.shareType = Platform.SHARE_WEBPAGE
wechatSp.title = Constant.SHARE_TITLE
wechatSp.text = Constant.SHARE_CONTENT
wechatSp.imageData = ImageUtil.drawableToBitmap(ContextCompat.getDrawable(context!!, R.mipmap.ic_launcher))
wechatSp.url = Constant.SHARE_URL
val wechat = ShareSDK.getPlatform(Wechat.NAME)
if (wechat.isClientValid) {
friendsPresenter.cmtShareStatus()
......
......@@ -421,8 +421,11 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
}
} else {
val wechatSp = ShareParams()
wechatSp.shareType = Platform.SHARE_IMAGE
wechatSp.imageData = ImageUtil.drawableToBitmap(ContextCompat.getDrawable(mContext, R.mipmap.ic_launcher))
wechatSp.shareType = Platform.SHARE_WEBPAGE
wechatSp.title = Constant.SHARE_TITLE
wechatSp.text = Constant.SHARE_CONTENT
wechatSp.imageData = ImageUtil.drawableToBitmap(ContextCompat.getDrawable(context!!, R.mipmap.ic_launcher))
wechatSp.url = Constant.SHARE_URL
val wechat = ShareSDK.getPlatform(Wechat.NAME)
if (wechat.isClientValid) {
myPresenter.cmtShareStatus()
......
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