[6.7.0]调整消息盒子红点显示,当打开消息盒子列表时出现新的消息,不出现红点

This commit is contained in:
xuxinchao
2024-10-11 16:07:27 +08:00
parent aec09924e3
commit db32f5498d

View File

@@ -3,6 +3,7 @@ package com.mogo.eagle.core.function.hmi.bone
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import com.mogo.eagle.core.function.api.datacenter.msgbox.IMsgBoxEventListener
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxEventListenerManager
@@ -171,7 +172,9 @@ class BoneTabLayout @JvmOverloads constructor(
override fun onUpdateTipEvent(isShow: Boolean) {
super.onUpdateTipEvent(isShow)
UiThreadHandler.post {
tabSwitchMsgBox.updateNotice(isShow)
if(msgBoxTabView.visibility == View.GONE){
tabSwitchMsgBox.updateNotice(isShow)
}
}
}
}