Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
430841c1
Commit
430841c1
authored
Jan 14, 2020
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改WebView分享到动态按钮失效问题
parent
83a1b997
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
build.gradle
app/build.gradle
+1
-1
FragmentContainerActivity.kt
app/src/main/java/com/ydl/component/music/FragmentContainerActivity.kt
+8
-6
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+3
-1
config.gradle
config.gradle
+1
-1
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+1
-3
No files found.
app/build.gradle
View file @
430841c1
...
...
@@ -204,7 +204,7 @@ dependencies {
// implementation project(':m-muse')
implementation
project
(
':m-im'
)
//
implementation project(':m-dynamic')
implementation
project
(
':m-dynamic'
)
// api rootProject.ext.dependencies["ydl-m-fm-module-ydl"]
...
...
app/src/main/java/com/ydl/component/music/FragmentContainerActivity.kt
View file @
430841c1
...
...
@@ -7,6 +7,8 @@ import com.ydl.component.mvp.DemoContract
import
com.ydl.component.mvp.DemoPresenter
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.yidianling.dynamic.trendsHome.TrendsHomeFragment
import
com.yidianling.home.ui.fragment.YdlHomeFragment
//import com.yidianling.dynamic.trendsHome.TrendsHomeFragment
//import com.yidianling.home.ui.fragment.YdlHomeFragment
import
com.yidianling.im.ui.page.NewMultiMessageFragment
...
...
@@ -61,12 +63,12 @@ class FragmentContainerActivity : BaseLceActivity<DemoContract.View, DemoContra
if
(
"NewMultiMessageFragment"
==
fragmentName
)
{
return
NewMultiMessageFragment
()
}
//
if ("TrendsHomeFragment" == fragmentName) {
//
return TrendsHomeFragment()
//
}
//
if ("YdlHomeFragment" == fragmentName) {
//
return YdlHomeFragment()
//
}
if
(
"TrendsHomeFragment"
==
fragmentName
)
{
return
TrendsHomeFragment
()
}
if
(
"YdlHomeFragment"
==
fragmentName
)
{
return
YdlHomeFragment
()
}
return
PlayFragment
()
}
}
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
430841c1
...
...
@@ -393,7 +393,9 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
openShareMenu
(
H5JsBean
.
H5JsCmd
.
Params
params
)
{
if
(
mContext
instanceof
NewH5Activity
)
{
((
NewH5Activity
)
mContext
).
openShareMenu
(
params
);
}
}
@Override
...
...
config.gradle
View file @
430841c1
ext
{
kotlin_version
=
"1.3.21"
dev_mode
=
tru
e
dev_mode
=
fals
e
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
430841c1
...
...
@@ -40,7 +40,6 @@ import com.ydl.ydlcommon.base.BaseActivity;
import
com.ydl.ydlcommon.base.BaseApp
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.data.PlatformRamImpl
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.utils.BuryPointUtils
;
import
com.ydl.ydlcommon.utils.LogUtil
;
...
...
@@ -49,7 +48,6 @@ import com.ydl.ydlcommon.utils.StatusBarUtils;
import
com.ydl.ydlcommon.utils.TemporaryUtils
;
import
com.ydl.ydlcommon.utils.URLUtils
;
import
com.ydl.ydlcommon.view.TitleBar
;
import
com.ydl.ydlcommon.view.dialog.CommonDialog
;
import
com.ydl.ydlcommon.view.dialog.YDLCommonDialog
;
import
com.ydl.ydlcommon.view.dialog.YDLShareDialog
;
import
com.yidianling.common.tools.RxDeviceTool
;
...
...
@@ -1389,6 +1387,6 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
private
void
toTrend
(
String
url
)
{
WebModularServiceUtils
.
Companion
.
getDynamicService
().
publishArticleToTrend
(
NewH5Activity
.
this
,
url
,
cover
,
shareTitle
);
this
.
startActivity
(
WebModularServiceUtils
.
Companion
.
getDynamicService
().
publishArticleToTrend
(
NewH5Activity
.
this
,
url
,
cover
,
shareTitle
)
);
}
}
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