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
3f5b52d4
Commit
3f5b52d4
authored
Oct 09, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:fm模块升级
parent
5e6232ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
config.gradle
config.gradle
+2
-2
FMDetailActivity.java
m-fm/src/main/java/com/yidianling/fm/FMDetailActivity.java
+5
-5
No files found.
config.gradle
View file @
3f5b52d4
...
...
@@ -7,7 +7,7 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.49.17"
,
"m-consultant"
:
"0.0.59.93"
,
"m-fm"
:
"0.0.30.0
6
"
,
"m-fm"
:
"0.0.30.0
7
"
,
"m-user"
:
"0.0.61.71"
,
"m-home"
:
"0.0.22.74"
,
"m-im"
:
"0.0.19.80"
,
...
...
@@ -90,7 +90,7 @@ ext {
"m-confide"
:
"0.0.49.17"
,
"m-consultant"
:
"0.0.59.93"
,
"m-fm"
:
"0.0.30.0
6
"
,
"m-fm"
:
"0.0.30.0
7
"
,
"m-user"
:
"0.0.61.71"
,
"m-home"
:
"0.0.22.74"
,
"m-im"
:
"0.0.19.80"
,
...
...
m-fm/src/main/java/com/yidianling/fm/FMDetailActivity.java
View file @
3f5b52d4
...
...
@@ -128,6 +128,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
@Override
protected
void
onNewIntent
(
Intent
intent
)
{
super
.
onNewIntent
(
intent
);
if
(
null
==
intent
)
{
finish
();
return
;
...
...
@@ -311,7 +312,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
@Override
public
void
onProgressChanged
(
SeekBar
seekBar
,
int
progress
,
boolean
fromUser
)
{
allTime
=
Integer
.
parseInt
(
String
.
valueOf
(
AudioPlayer
.
Companion
.
get
().
getDuration
()));
//
allTime = Integer.parseInt(String.valueOf(AudioPlayer.Companion.get().getDuration()));
int
current
=
seekBar
.
getProgress
()
*
allTime
/
1000
;
tv_allTime
.
setText
(
formatter
.
format
(
allTime
));
tv_currentTime
.
setText
(
formatter
.
format
(
current
));
...
...
@@ -326,7 +327,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
@Override
public
void
onStopTrackingTouch
(
SeekBar
seekBar
)
{
allTime
=
Integer
.
parseInt
(
String
.
valueOf
(
AudioPlayer
.
Companion
.
get
().
getDuration
()));
//
allTime = Integer.parseInt(String.valueOf(AudioPlayer.Companion.get().getDuration()));
int
current
=
seekBar
.
getProgress
()
*
allTime
/
1000
;
tv_allTime
.
setText
(
formatter
.
format
(
allTime
));
tv_currentTime
.
setText
(
formatter
.
format
(
current
));
...
...
@@ -538,12 +539,11 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
public
void
updateThread
()
{
runOnUiThread
(()
->
{
allTime
=
Integer
.
parseInt
(
String
.
valueOf
(
AudioPlayer
.
Companion
.
get
().
getDuration
()));
//
allTime = Integer.parseInt(String.valueOf(AudioPlayer.Companion.get().getDuration()));
currentTime
.
setTime
(
time
-
8
*
60
*
60
*
1000
);
int
percent
=
(
int
)
(
1000.0
*
time
/
allTime
);
fm_progress
.
setProgress
(
percent
);
tv_currentTime
.
setText
(
formatter
.
format
(
currentTime
));
tv_allTime
.
setText
(
formatter
.
format
(
allTime
));
});
}
...
...
@@ -622,7 +622,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
@Override
public
void
onPrepared
(
long
duration
)
{
this
.
allTime
=
Integer
.
parseInt
(
String
.
valueOf
(
duration
));
tv_allTime
.
setText
(
formatter
.
format
(
allTime
));
iv_play
.
setVisibility
(
View
.
VISIBLE
);
refresh_icon
.
setVisibility
(
View
.
GONE
);
anim
.
cancel
();
...
...
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