Merge branch 'dev_arch_opt_3.0' into 'dev_robobus-m1-p-app-module_1.0.0_230112_1.0.0'
[2.13.0-arch-opt]turn light bug fix and add toggle debug view trigger See merge request zhjt/AndroidApp/MoGoEagleEye!538
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user