[bugfix]
[自驾状态启动自驾埋点超时、中途进入应用 上报自驾启动成功]
This commit is contained in:
@@ -29,6 +29,12 @@ object RxUtils {
|
||||
function.invoke()
|
||||
}
|
||||
}
|
||||
fun createSubscribeOnOwnThread(delay: Long=2000, function: () -> Unit): Disposable? {
|
||||
return Observable.timer(delay, TimeUnit.MILLISECONDS)
|
||||
.subscribe {
|
||||
function.invoke()
|
||||
}
|
||||
}
|
||||
|
||||
fun isDisposed(disposable: Disposable?):Boolean{
|
||||
if(disposable!=null){
|
||||
|
||||
Reference in New Issue
Block a user