[6.0.0]
[代码回滚]
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.mogo.eagle.core.widget.media.video
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.view.Surface
|
||||
@@ -150,8 +151,13 @@ class SimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
isPostBufferUpdate = false
|
||||
}
|
||||
|
||||
@Suppress("SENSELESS_COMPARISON")
|
||||
private var runnable = object :Runnable {
|
||||
override fun run() {
|
||||
// 外层对象倍回收 延时继续运行 慎重删除
|
||||
if(this@SimpleVideoPlayer==null){
|
||||
return
|
||||
}
|
||||
updateTimer++
|
||||
postDelayed(this, 1000)
|
||||
if (updateTimer >= 3) {
|
||||
|
||||
Reference in New Issue
Block a user