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
2e7e5c09
Commit
2e7e5c09
authored
May 08, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网络状态不显示问题
parent
e9037c13
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
27 deletions
+49
-27
build.gradle
app/build.gradle
+2
-1
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+2
-1
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+9
-0
config.gradle
config.gradle
+3
-3
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+13
-19
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+3
-3
HomeViewConfig.kt
m-home/src/ydl/java/com/yidianling/home/constract/HomeViewConfig.kt
+9
-0
user_mine_ydl_logo.png
m-user/src/main/res/drawable-xhdpi/user_mine_ydl_logo.png
+0
-0
user_mine_fragment_mine.xml
m-user/src/main/res/layout/user_mine_fragment_mine.xml
+8
-0
No files found.
app/build.gradle
View file @
2e7e5c09
...
...
@@ -180,6 +180,7 @@ dependencies {
implementation
fileTree
(
dir:
'aars'
,
include:
[
'*.aar'
])
implementation
project
(
':m-user'
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-confide-api'
)
api
project
(
':m-tests'
)
api
project
(
':m-consultant'
)
implementation
modularPublication
(
'com.ydl:m-consultant-api'
)
...
...
@@ -187,7 +188,7 @@ dependencies {
api
project
(
':m-home'
)
//
api project(':m-confide')
api
project
(
':m-confide'
)
// api "com.ydl:m-consultant-api:0.0.2"
// api 'com.ydl:m-consultant-module-ydl:0.0.18@aar'
...
...
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
2e7e5c09
...
...
@@ -29,6 +29,7 @@ import com.yidianling.user.widget.SecretDialog
import
com.yidianling.user.widget.SecretDialog.OnSecretDialogListener
import
kotlinx.android.synthetic.main.activity_main.*
import
com.ydl.component.route.PlatformTempCommonRouteImpl
import
com.ydl.confide.home.ConfideHomeActivity
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
...
...
@@ -131,7 +132,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
}
bt_to_confide
.
setOnClickListener
{
// YDLavManager.instances.login("1193016")
//
startActivity(Intent(this, ConfideHomeActivity::class.java))
startActivity
(
Intent
(
this
,
ConfideHomeActivity
::
class
.
java
))
}
bt_to_muse
.
setOnClickListener
{
...
...
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
2e7e5c09
...
...
@@ -3,6 +3,8 @@ package com.ydl.component.service.web;
import
android.app.Activity
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.ydl.confide.api.IConfideService
;
import
com.ydl.webview.H5JsBean
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
...
...
@@ -357,6 +359,11 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
confideConnect
(
H5JsBean
.
H5JsCmd
.
Params
jsData
)
{
// ModularServiceManager.INSTANCE.provide(IConfideService.class).connectionJava(jsData.getId(),jsData.getConfideType(),mContext,null,jsData.getCallType());
((
IConfideService
)
ARouter
.
getInstance
().
build
(
"/confide/ConfideService"
).
navigation
()).
connectionJava
(
jsData
.
getId
(),
3
,
mContext
,
null
,
jsData
.
getCallType
());
}
@Override
...
...
@@ -440,4 +447,6 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
((
NewH5Activity
)
mContext
).
setSelfPageType
(
selfType
);
}
}
}
config.gradle
View file @
2e7e5c09
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.4
8
"
,
"m-confide"
:
"0.0.48.4
9.5
"
,
"m-consultant"
:
"0.0.59.10"
,
"m-fm"
:
"0.0.29.9"
,
"m-user"
:
"0.0.60.8"
,
...
...
@@ -39,7 +39,7 @@ ext {
"ydl-webview"
:
"0.0.38.31"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.9"
,
"m-audioim"
:
"0.0.49.2
2
"
,
"m-audioim"
:
"0.0.49.2
8
"
,
"ydl-flutter-base"
:
"0.0.14.14"
,
//以下 几乎不会动
...
...
@@ -122,7 +122,7 @@ ext {
"ydl-webview"
:
"0.0.38.31"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.9"
,
"m-audioim"
:
"0.0.49.2
2
"
,
"m-audioim"
:
"0.0.49.2
8
"
,
"ydl-flutter-base"
:
"0.0.14.14"
,
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
2e7e5c09
...
...
@@ -228,7 +228,7 @@ class AudioHomeActivity :
showToast
(
"请退出应用,重新打开"
)
leaveChannel
()
}
10
,
17
->
{
10
->
{
showToast
(
"当前网络较差,请更换网络"
)
leaveChannel
()
}
...
...
@@ -244,10 +244,7 @@ class AudioHomeActivity :
// showToast("当前用户不允许接听电话,请联系客服")
// leaveChannel()
}
else
->
{
//异常关闭
leaveChannel
()
}
}
YDLavManager
.
instances
.
callEndStatusUpdate
(
channelId
!!
,
4
,
"频道的错误回调信息$err"
)
}
...
...
@@ -346,6 +343,7 @@ class AudioHomeActivity :
override
fun
onNetworkQuality
(
uid
:
Int
,
txQuality
:
Int
,
rxQuality
:
Int
)
{
super
.
onNetworkQuality
(
uid
,
txQuality
,
rxQuality
)
LogUtil
.
e
(
"onNetworkQuality:-------uid=$uid,txQuality=$txQuality,rxQuality=$rxQuality"
)
runOnUiThread
{
var
status
=
-
1
var
netStatus
=
when
(
uid
)
{
listenerUid
!!
.
toInt
()
->
{
...
...
@@ -383,6 +381,7 @@ class AudioHomeActivity :
showNetStatus
(
netStatus
,
status
)
}
}
}
//
override
fun
createPresenter
():
IAudioHomeActivityContract
.
Presenter
{
...
...
@@ -1009,6 +1008,7 @@ class AudioHomeActivity :
* 声网离开频道
*/
fun
leaveChannel
()
{
LogUtil
.
e
(
"调用leaveChannel方法,isLeavelChannel=$isLeavelChannel"
)
if
(!
isLeavelChannel
)
{
isLeavelChannel
=
true
//刷新h5页面
...
...
@@ -1072,34 +1072,28 @@ class AudioHomeActivity :
* 网络状态
*/
private
fun
showNetStatus
(
msg
:
String
,
status
:
Int
=
0
)
{
runOnUiThread
{
LogUtil
.
e
(
"showNetStatus: msg=$msg,status=$status"
)
if
(
TextUtils
.
isEmpty
(
msg
)&&
status
==-
1
){
//todo
return
}
if
(
TextUtils
.
isEmpty
(
msg
))
{
tv_nte_status
.
visibility
=
View
.
GONE
}
else
{
tv_nte_status
.
text
=
msg
if
(
status
==
0
)
{
tv_nte_status
.
setCompoundDrawablesWithIntrinsicBounds
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
av_audio_wifi_normal
),
null
,
null
,
null
)
tv_nte_status
.
setCompoundDrawablesWithIntrinsicBounds
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
av_audio_wifi_normal
),
null
,
null
,
null
)
}
if
(
status
==
1
)
{
tv_nte_status
.
setCompoundDrawablesWithIntrinsicBounds
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
av_audio_wifi_better
),
null
,
null
,
null
)
tv_nte_status
.
setCompoundDrawablesWithIntrinsicBounds
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
av_audio_wifi_better
),
null
,
null
,
null
)
}
if
(
status
==
-
1
)
{
tv_nte_status
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
null
,
null
)
}
tv_nte_status
.
visibility
=
View
.
VISIBLE
}
}
}
override
fun
showProgressView
()
{
try
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
2e7e5c09
...
...
@@ -207,7 +207,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
srlContainer
.
setColorSchemeColors
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
consultant
_main_theme
R
.
color
.
platform
_main_theme
)
)
srlContainer
.
setProgressViewOffset
(
false
,
0
,
200
)
...
...
@@ -1519,7 +1519,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
}
FILTER_STATUS_FILTERED
->
{
tv
.
typeface
=
Typeface
.
DEFAULT_BOLD
tv
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
consultant
_main_theme
))
tv
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
platform
_main_theme
))
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
...
...
@@ -1533,7 +1533,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
consultant_ic_arrow_drop_dow
n
,
R
.
drawable
.
platform_arrow_drop_down_e
n
,
0
)
}
...
...
m-home/src/ydl/java/com/yidianling/home/constract/HomeViewConfig.kt
View file @
2e7e5c09
...
...
@@ -66,5 +66,13 @@ class HomeViewConfig {
* 底部提示语模块
*/
var
footerIndex
:
Int
?
=
10
var
confideTitle
:
String
=
"倾诉·排解"
var
fmTitle
:
String
=
"心灵·电台"
var
articleTitle
:
String
=
"文章·阅读"
var
testsTitle
:
String
=
"测试·分析"
var
museTitle
:
String
=
"助眠·冥想"
var
courseTitle
:
String
=
"学习·成长"
var
consultTitle
:
String
=
"咨询·理解"
var
dynamicTitle
:
String
=
"解忧·问答"
}
}
\ No newline at end of file
m-user/src/main/res/drawable-xhdpi/user_mine_ydl_logo.png
0 → 100644
View file @
2e7e5c09
71.5 KB
m-user/src/main/res/layout/user_mine_fragment_mine.xml
View file @
2e7e5c09
...
...
@@ -605,6 +605,14 @@
app:pa_jump_tv_left_size=
"12sp"
app:pa_jump_tv_left_text=
"debug环境任意门"
/>
<ImageView
android:src=
"@drawable/user_mine_ydl_logo"
android:layout_width=
"match_parent"
android:scaleType=
"centerCrop"
android:background=
"@color/baby_blue"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</ScrollView>
...
...
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