Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
9b535032
Commit
9b535032
authored
Sep 25, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍拍海报修改
parent
5d8b22c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
ShareManager.java
...main/java/com/ruiwenliu/wrapper/util/um/ShareManager.java
+10
-1
DetailPatActivity.java
...main/java/com/xxfc/discovery/other/DetailPatActivity.java
+13
-12
No files found.
RvWrapper/src/main/java/com/ruiwenliu/wrapper/util/um/ShareManager.java
View file @
9b535032
...
...
@@ -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
...
...
module_discovery/src/main/java/com/xxfc/discovery/other/DetailPatActivity.java
View file @
9b535032
...
...
@@ -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"
);
}
...
...
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