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
7fdac41a
Commit
7fdac41a
authored
Jul 29, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 蠢哭了的写法,记得改,冥想播放问题
parent
0f98c221
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+1
-8
build.gradle
build.gradle
+1
-1
AudioPlayer.kt
ydl-media/src/main/java/com/ydl/media/audio/AudioPlayer.kt
+2
-2
MeditationFloatStopEvent.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/event/MeditationFloatStopEvent.kt
+1
-1
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
7fdac41a
...
...
@@ -2,19 +2,14 @@ package com.ydl.component
import
android.Manifest
import
android.annotation.SuppressLint
import
android.content.ComponentName
import
android.content.Context
import
android.content.Intent
import
android.content.ServiceConnection
import
android.graphics.PixelFormat
import
android.media.MediaPlayer
import
android.net.Uri
import
android.os.Build
import
android.os.IBinder
import
android.provider.Settings
import
android.text.TextUtils
import
android.util.DisplayMetrics
import
android.util.Log
import
android.view.*
import
android.widget.ImageView
import
android.widget.TextView
...
...
@@ -54,8 +49,6 @@ import com.yidianling.tests.home.NewTestHomeActivity
import
com.yidianling.user.api.service.IUserService
import
com.yidianling.user.ui.collect.CollectSexAndBirthActivity
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.widget.SecretDialog
import
com.yidianling.user.widget.SecretDialog.OnSecretDialogListener
import
de.greenrobot.event.EventBus
import
io.feeeei.circleseekbar.CircleSeekBar
import
io.reactivex.Observable
...
...
@@ -405,7 +398,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
}
fun
onEventMainThread
(
event
:
Any
)
{
if
(
event
is
com
.
ydl
.
ydlcommon
.
event
.
MeditationFloatEvent
){
if
(
event
is
com
.
ydl
.
ydlcommon
.
event
.
MeditationFloat
Stop
Event
){
mToShowWindow
=
event
.
show
if
(
event
.
show
!=
null
&&
!
event
.
show
)
{
if
(
event
.
stop
==
true
){
...
...
build.gradle
View file @
7fdac41a
...
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.8
-SNAPSHOT
"
componentVersion
=
"0.3.0.8"
}
repositories
{
mavenCentral
()
...
...
ydl-media/src/main/java/com/ydl/media/audio/AudioPlayer.kt
View file @
7fdac41a
...
...
@@ -13,7 +13,7 @@ import com.ydl.media.audio.manager.NotifyManager
import
com.ydl.media.audio.model.Music
import
com.ydl.media.audio.receiver.NoisyAudioStreamReceiver
import
com.ydl.media.audio.utils.PlayProgressUtil
import
com.ydl.ydlcommon.event.MeditationFloatEvent
import
com.ydl.ydlcommon.event.MeditationFloat
Stop
Event
import
com.ydl.ydlcommon.utils.LogUtil
import
com.yidianling.common.tools.ToastUtil
import
de.greenrobot.event.EventBus
...
...
@@ -344,7 +344,7 @@ class AudioPlayer private constructor() {
}
}
val
event
=
MeditationFloatEvent
(
show
=
false
,
stop
=
true
,
time
=
null
)
val
event
=
MeditationFloat
Stop
Event
(
show
=
false
,
stop
=
true
,
time
=
null
)
EventBus
.
getDefault
().
post
(
event
)
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/event/MeditationFloatEvent.kt
→
ydl-platform/src/main/java/com/ydl/ydlcommon/event/MeditationFloat
Stop
Event.kt
View file @
7fdac41a
package
com.ydl.ydlcommon.event
class
MeditationFloatEvent
(
class
MeditationFloat
Stop
Event
(
val
show
:
Boolean
,
val
stop
:
Boolean
?
=
null
,
val
time
:
Long
?
=
null
...
...
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