[6.6.2]修改多个弹窗造成的回调混乱

This commit is contained in:
xuxinchao
2024-10-11 18:15:51 +08:00
committed by EmArrow
parent 1c6ff76927
commit c573b3e2df

View File

@@ -186,7 +186,7 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
@SuppressLint("SetTextI18n")
private fun initEvent(){
CallerDevaToolsListenerManager.addListener(TAG, this)
CallerDevaToolsListenerManager.addListener(this.hashCode().toString(), this)
val iconDown = ContextCompat.getDrawable(mActivity, R.drawable.icon_fault_expand)
iconDown?.setBounds(0, 0, iconDown.minimumWidth, iconDown.minimumHeight)
val iconUp = ContextCompat.getDrawable(mActivity, R.drawable.icon_fault_retract)
@@ -466,7 +466,7 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
mWindowManager!!.removeView(mFloatLayout)
}
setWindowShowStatus(false)
CallerDevaToolsListenerManager.removeListener(TAG)
CallerDevaToolsListenerManager.removeListener(this.hashCode().toString())
}
/**