[2.14.0]fix录包管理页面修改Bag包描述光标跳跃问题

This commit is contained in:
xuxinchao
2023-02-17 07:05:17 +08:00
parent 3e9a8f5bf2
commit 4b7ccffdce

View File

@@ -59,6 +59,8 @@ class BadCaseManagerView @JvmOverloads constructor(
private val audioSavePath = "/mnt/sdcard/mogo/"
private var isNameModify = false
init {
LayoutInflater.from(context).inflate(R.layout.layout_badcase_manager, this, true)
initView()
@@ -187,6 +189,7 @@ class BadCaseManagerView @JvmOverloads constructor(
override fun editDescription(key: Long, description: BagDescriptionEntity) {
//编辑Bag包描述信息
isNameModify = true
bagManagerEntity.reqType = 5
bagManagerEntity.keyReq = key
bagManagerEntity.descReq = description
@@ -382,10 +385,13 @@ class BadCaseManagerView @JvmOverloads constructor(
it.hasAudio = bagManager.descReq.hasAudio
it.audioUrl = bagManager.descReq.audioUrl
}
//更新List
bagManagerListAdapter?.setData(bagManagerEntity.bagsInfoResp)
}
}
if(!isNameModify){
//更新List
bagManagerListAdapter?.setData(bagManagerEntity.bagsInfoResp)
}
isNameModify = false
}
}