This commit is contained in:
lixiaopeng
2022-01-27 15:20:11 +08:00
parent 50a1636946
commit b291b7403a
3 changed files with 9 additions and 4 deletions

View File

@@ -959,9 +959,9 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
*/
override fun showTurnLight(light: Int) {
if (isOpenTurnlight) {
Log.d("liyz", "showTurnLight light = $light")
turnLightView.setTurnLight(light)
}
// Log.d("liyz", "showTurnLight light = $light");
}
/**
@@ -969,9 +969,9 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
*/
override fun showBrakeLight(light: Int) {
if (isOpenTurnlight) {
// Log.d("liyz", "showBrakeLight light = $light")
brakeView.setBrakeLight(light)
}
// Log.d("liyz", "showBrakeLight light = $light");
}

View File

@@ -83,6 +83,7 @@ class TurnLightViewStatus @JvmOverloads constructor(
isDisappare = true
isShowNormalBg = false
isLeftLight = false
isRightLight = false
isDisappare = false
}
}
@@ -110,6 +111,10 @@ class TurnLightViewStatus @JvmOverloads constructor(
left_select_image.clearAnimation()
right_select_image.clearAnimation()
left_nor_image.clearAnimation()
right_nor_image.clearAnimation()
turn_light_layout.clearAnimation()
val disappearAnimationLeft = AlphaAnimation(1.0f, 0f)
disappearAnimationLeft.duration = 300
@@ -142,7 +147,7 @@ class TurnLightViewStatus @JvmOverloads constructor(
override fun onAnimationEnd(p0: Animation?) {
turn_light_layout.visibility = View.GONE
stopAnimate()
// stopAnimate()
}
})
}