Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
e983a04d
Commit
e983a04d
authored
Oct 16, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分享内容
parent
880c170f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
FriendsFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
+5
-2
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+5
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
View file @
e983a04d
...
@@ -179,8 +179,11 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, Platform
...
@@ -179,8 +179,11 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, Platform
private
fun
invitedFriends
()
{
private
fun
invitedFriends
()
{
val
wechatSp
=
Platform
.
ShareParams
()
val
wechatSp
=
Platform
.
ShareParams
()
wechatSp
.
shareType
=
Platform
.
SHARE_IMAGE
wechatSp
.
shareType
=
Platform
.
SHARE_WEBPAGE
wechatSp
.
imageData
=
ImageUtil
.
drawableToBitmap
(
ContextCompat
.
getDrawable
(
mContext
,
R
.
mipmap
.
ic_launcher
))
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
)
val
wechat
=
ShareSDK
.
getPlatform
(
Wechat
.
NAME
)
if
(
wechat
.
isClientValid
)
{
if
(
wechat
.
isClientValid
)
{
friendsPresenter
.
cmtShareStatus
()
friendsPresenter
.
cmtShareStatus
()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
e983a04d
...
@@ -421,8 +421,11 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -421,8 +421,11 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
}
}
}
else
{
}
else
{
val
wechatSp
=
ShareParams
()
val
wechatSp
=
ShareParams
()
wechatSp
.
shareType
=
Platform
.
SHARE_IMAGE
wechatSp
.
shareType
=
Platform
.
SHARE_WEBPAGE
wechatSp
.
imageData
=
ImageUtil
.
drawableToBitmap
(
ContextCompat
.
getDrawable
(
mContext
,
R
.
mipmap
.
ic_launcher
))
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
)
val
wechat
=
ShareSDK
.
getPlatform
(
Wechat
.
NAME
)
if
(
wechat
.
isClientValid
)
{
if
(
wechat
.
isClientValid
)
{
myPresenter
.
cmtShareStatus
()
myPresenter
.
cmtShareStatus
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment