[feedback]添加主动场景内置并优化数据加载逻辑
This commit is contained in:
@@ -3,6 +3,7 @@ package com.mogo.eagle.core.function.hmi.notification.anim
|
||||
import android.animation.Animator
|
||||
import android.animation.ValueAnimator
|
||||
import android.graphics.Rect
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
import android.view.WindowManager
|
||||
import com.mogo.eagle.core.data.enums.SidePattern
|
||||
@@ -49,7 +50,9 @@ 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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
|
||||
.setAnimator(object : DefaultAnimator() {
|
||||
override fun enterAnim(
|
||||
view: View,
|
||||
params: WindowManager.LayoutParams,
|
||||
params:LayoutParams,
|
||||
windowManager: WindowManager,
|
||||
sidePattern: SidePattern
|
||||
): Animator? =
|
||||
|
||||
Reference in New Issue
Block a user