Commit 79185d0b by konghaorui

Revert "修复FM播放动画在页面onResume的时候出现的异常"

This reverts commit 7eaad204.
parent 7eaad204
......@@ -168,13 +168,13 @@ dependencies {
if (rootProject.ext.dev_mode) {
//开发模式
api project(':m-user')
api project(':m-fm')
//api project(':m-fm')
api project(':m-tests')
api project(':m-consultant')
api (project(':ydl-platform')){
transitive = true
}
// implementation project(':ydl-webview')
implementation project(':ydl-webview')
implementation project(':ydl-media')
} else {
//发布模式
......
......@@ -555,11 +555,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
@Override
protected void onResume() {
super.onResume();
if (AudioPlayer.Companion.get().isPlaying()) {
fmSurfaceView.playTimer();
}else {
fmSurfaceView.stopTimer();
}
fmSurfaceView.surfaceCreated(null);
if (PlayerFloatHelper.Companion.isShow(this)) {
PlayerFloatHelper.Companion.removeView(this);
......
......@@ -86,6 +86,7 @@ class FMSurfaceView(context: Context?, attrs: AttributeSet?) : SurfaceView(conte
}
private fun drawAnimate() {
synchronized(this) {
mHolder?.let {
canvas = mHolder?.lockCanvas()
canvas?.let {
......@@ -122,6 +123,7 @@ class FMSurfaceView(context: Context?, attrs: AttributeSet?) : SurfaceView(conte
}
}
}
}
private fun drawPath(point: Point, pointRadius: Float) {
path = Path()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment