add func
This commit is contained in:
@@ -50,9 +50,7 @@ open class DefaultAnimator : OnFloatAnimator {
|
||||
if (triple.third) params.x = value else params.y = value
|
||||
// 动画执行过程中页面关闭,出现异常
|
||||
windowManager.updateViewLayout(view, params)
|
||||
Log.d("XXX", "update ---> ${it.animatedValue}, ${it.animatedFraction}, $value")
|
||||
} catch (e: Exception) {
|
||||
Log.d("XXX", "exception ---> $e")
|
||||
cancel()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ class V2XWarningView @JvmOverloads constructor(
|
||||
* @param closeTime 倒计时
|
||||
*/
|
||||
fun showWarning(direction: WarningDirectionEnum, closeTime: Long) {
|
||||
// CallerLogger.d("$M_HMI$TAG", "预警红边:预警方向->$direction 预警倒计时->$closeTime")
|
||||
Log.d(TAG, "预警红边:预警方向->$direction 预警倒计时->$closeTime")
|
||||
UiThreadHandler.post {
|
||||
// 如果传入的不是关闭显示,则设置倒计时,定时关闭红框警示
|
||||
|
||||
Reference in New Issue
Block a user