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
74af6004
Commit
74af6004
authored
Jun 09, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发版
parent
89b7bbfc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
config.gradle
config.gradle
+5
-5
ConsultantAudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
+2
-0
ActivityManager.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ActivityManager.kt
+8
-8
No files found.
config.gradle
View file @
74af6004
...
@@ -5,7 +5,7 @@ ext {
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.7
1
"
,
"m-confide"
:
"0.0.48.7
3
"
,
"m-consultant"
:
"0.0.59.23"
,
"m-consultant"
:
"0.0.59.23"
,
"m-fm"
:
"0.0.30.00"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.20"
,
"m-user"
:
"0.0.60.20"
,
...
@@ -33,13 +33,13 @@ ext {
...
@@ -33,13 +33,13 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.39.4
0
"
,
"ydl-platform"
:
"0.0.39.4
1
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.32"
,
"ydl-webview"
:
"0.0.38.32"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.9"
,
"ydl-pay"
:
"0.0.18.9"
,
"m-audioim"
:
"0.0.49.29.
4
"
,
"m-audioim"
:
"0.0.49.29.
6
"
,
"ydl-flutter-base"
:
"0.0.14.16"
,
"ydl-flutter-base"
:
"0.0.14.16"
,
//以下 几乎不会动
//以下 几乎不会动
...
@@ -114,13 +114,13 @@ ext {
...
@@ -114,13 +114,13 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.39.4
0
"
,
"ydl-platform"
:
"0.0.39.4
1
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.31"
,
"ydl-webview"
:
"0.0.38.31"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.9"
,
"ydl-pay"
:
"0.0.18.9"
,
"m-audioim"
:
"0.0.49.29.
4
"
,
"m-audioim"
:
"0.0.49.29.
6
"
,
"ydl-flutter-base"
:
"0.0.14.14"
,
"ydl-flutter-base"
:
"0.0.14.14"
,
//以下 几乎不会动
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
View file @
74af6004
...
@@ -773,6 +773,8 @@ class ConsultantAudioHomeActivity : BaseMvpActivity<IConsultantAudioHomeActivity
...
@@ -773,6 +773,8 @@ class ConsultantAudioHomeActivity : BaseMvpActivity<IConsultantAudioHomeActivity
uploadException
(
"主叫取消"
,
zhu
=
""
)
uploadException
(
"主叫取消"
,
zhu
=
""
)
showToast
(
"对方已挂断"
)
showToast
(
"对方已挂断"
)
}
}
ActivityManager
.
getInstance
().
removeStack
(
activity
=
this
)
LogUtil
.
e
(
"[agora]页面移除"
)
finish
()
finish
()
}
}
}
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ActivityManager.kt
View file @
74af6004
...
@@ -20,7 +20,7 @@ class ActivityManager {
...
@@ -20,7 +20,7 @@ class ActivityManager {
}
}
fun
finishAll
()
{
fun
finishAll
()
{
for
(
a
in
getInstance
().
activates
)
{
for
(
a
in
getInstance
().
activates
)
{
a
.
finish
()
a
.
finish
()
}
}
getInstance
().
activates
.
clear
()
getInstance
().
activates
.
clear
()
...
@@ -38,16 +38,16 @@ class ActivityManager {
...
@@ -38,16 +38,16 @@ class ActivityManager {
*/
*/
fun
finishOtherActivity
(
activity
:
Activity
)
{
fun
finishOtherActivity
(
activity
:
Activity
)
{
for
(
act
in
getInstance
().
activates
){
for
(
act
in
getInstance
().
activates
)
{
if
(
act
==
activity
)
continue
if
(
act
==
activity
)
continue
act
.
finish
()
act
.
finish
()
}
}
}
}
fun
finishActivity
(
cls
:
Class
<*>)
{
fun
finishActivity
(
cls
:
Class
<*>)
{
getInstance
().
activates
getInstance
().
activates
.
filter
{
it
::
class
.
java
==
cls
}
.
filter
{
it
::
class
.
java
==
cls
}
.
forEach
{
finishActivity
(
it
)
}
.
forEach
{
finishActivity
(
it
)
}
}
}
}
}
...
@@ -56,12 +56,12 @@ class ActivityManager {
...
@@ -56,12 +56,12 @@ class ActivityManager {
}
}
// 添加到栈中
// 添加到栈中
fun
addStack
(
activity
:
Activity
)
{
fun
addStack
(
activity
:
Activity
)
{
activates
.
add
(
activity
)
activates
.
add
(
activity
)
}
}
// 从栈中移除
// 从栈中移除
internal
fun
removeStack
(
activity
:
Activity
)
{
fun
removeStack
(
activity
:
Activity
)
{
if
(
activates
.
contains
(
activity
))
{
if
(
activates
.
contains
(
activity
))
{
activates
.
remove
(
activity
)
activates
.
remove
(
activity
)
}
}
...
@@ -100,7 +100,7 @@ class ActivityManager {
...
@@ -100,7 +100,7 @@ class ActivityManager {
fun
finishActivity
(
cls
:
Class
<
out
Activity
>)
{
fun
finishActivity
(
cls
:
Class
<
out
Activity
>)
{
activates
.
filter
{
it
::
class
.
java
==
cls
}
activates
.
filter
{
it
::
class
.
java
==
cls
}
.
forEach
{
finishActivity
(
it
)
}
.
forEach
{
finishActivity
(
it
)
}
}
}
private
object
Holder
{
private
object
Holder
{
...
...
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