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
cc15c960
Commit
cc15c960
authored
Aug 10, 2022
by
王佳洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频快照
parent
0ff123a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
build.gradle
build.gradle
+1
-1
CourseSpeedDialog.kt
m-course/src/main/java/com/yidianling/course/widget/CourseSpeedDialog.kt
+1
-1
HomeImpl.kt
m-home/src/xlzx/java/com/yidianling/home/event/HomeImpl.kt
+4
-5
ImageUtil.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ImageUtil.kt
+2
-0
No files found.
build.gradle
View file @
cc15c960
...
@@ -14,7 +14,7 @@ buildscript {
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.2
4
-SNAPSHOT"
componentVersion
=
"0.3.0.2
5
-SNAPSHOT"
}
}
repositories
{
repositories
{
mavenCentral
()
mavenCentral
()
...
...
m-course/src/main/java/com/yidianling/course/widget/CourseSpeedDialog.kt
View file @
cc15c960
...
@@ -38,7 +38,7 @@ class CourseSpeedDialog : BaseDialogFragment() {
...
@@ -38,7 +38,7 @@ class CourseSpeedDialog : BaseDialogFragment() {
}
}
fun
setSpeedPosition
(
speed
:
Float
)
{
fun
setSpeedPosition
(
speed
:
Float
)
{
mCurrentPosition
=
mSpeedList
.
indexOf
(
speed
)
mCurrentPosition
=
mSpeedList
.
indexOf
First
{
speed
==
it
}
}
}
inner
class
CourseSpeedAdapter
(
inner
class
CourseSpeedAdapter
(
...
...
m-home/src/xlzx/java/com/yidianling/home/event/HomeImpl.kt
View file @
cc15c960
...
@@ -52,9 +52,9 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
...
@@ -52,9 +52,9 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
AudioPlayer
.
get
().
singlePlay
(
music
,
false
)
AudioPlayer
.
get
().
singlePlay
(
music
,
false
)
PlayerFloatHelper
.
playingType
=
PlayTypeEnum
.
PLAY_TYPE_CONFIDE
PlayerFloatHelper
.
playingType
=
PlayTypeEnum
.
PLAY_TYPE_CONFIDE
if
(
PlayerFloatHelper
.
isShow
(
mContext
!!
))
{
if
(
PlayerFloatHelper
.
isShow
())
{
if
(
PlayerFloatHelper
.
playingType
==
PlayTypeEnum
.
PLAY_TYPE_CONFIDE
)
{
if
(
PlayerFloatHelper
.
playingType
==
PlayTypeEnum
.
PLAY_TYPE_CONFIDE
)
{
PlayerFloatHelper
.
removeView
(
mContext
!!
)
PlayerFloatHelper
.
removeView
()
PlayerFloatHelper
.
show
(
mContext
!!
)
PlayerFloatHelper
.
show
(
mContext
!!
)
}
else
{
}
else
{
...
@@ -78,9 +78,8 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
...
@@ -78,9 +78,8 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
override
fun
onPlayFinish
()
{
override
fun
onPlayFinish
()
{
stopPlayAnim
()
stopPlayAnim
()
if
(
PlayerFloatHelper
.
isShow
(
mContext
!!
))
{
if
(
PlayerFloatHelper
.
isShow
())
{
PlayerFloatHelper
.
removeView
(
mContext
!!
)
PlayerFloatHelper
.
removeResetView
()
AudioPlayer
.
get
().
stopPlayer
()
}
}
}
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ImageUtil.kt
View file @
cc15c960
...
@@ -45,6 +45,7 @@ class ImageUtil {
...
@@ -45,6 +45,7 @@ class ImageUtil {
* base64字符串
* base64字符串
* 保存图片到相册
* 保存图片到相册
*/
*/
@JvmStatic
fun
savePicture
(
context
:
Context
,
base64
:
String
?):
Disposable
?
{
fun
savePicture
(
context
:
Context
,
base64
:
String
?):
Disposable
?
{
var
disposable
:
Disposable
?
=
null
var
disposable
:
Disposable
?
=
null
base64
?.
run
{
base64
?.
run
{
...
@@ -71,6 +72,7 @@ class ImageUtil {
...
@@ -71,6 +72,7 @@ class ImageUtil {
* bitmap
* bitmap
* 保存图片到相册
* 保存图片到相册
*/
*/
@JvmStatic
fun
savePicture
(
context
:
Context
,
bitmap
:
Bitmap
?):
Disposable
?
{
fun
savePicture
(
context
:
Context
,
bitmap
:
Bitmap
?):
Disposable
?
{
var
disposable
:
Disposable
?
=
null
var
disposable
:
Disposable
?
=
null
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
...
...
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