[2.13.0-arch-opt]turn light bug fix and add toggle debug view trigger

This commit is contained in:
zhongchao
2023-02-16 21:02:10 +08:00
parent 23c7346fa2
commit 0e000cf2d1
8 changed files with 61 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
package com.mogo.eagle.core.function.hmi.ui.setting
import android.content.Context
import android.util.AttributeSet
import android.view.View
class ToggleDebugViewTrigger(context: Context, attrs: AttributeSet?
) : View(context, attrs){
init {
setOnLongClickListener {
ToggleDebugView.toggleDebugView.toggle(this.context)
true
}
}
}

View File

@@ -163,8 +163,10 @@ open class TurnLightViewStatus @JvmOverloads constructor(
}
override fun onAnimationEnd(p0: Animation?) {
left_nor_image.visibility = View.GONE
right_nor_image.visibility = View.GONE
if (!visible) {
left_nor_image.visibility = View.GONE
right_nor_image.visibility = View.GONE
}
}
})