[6.6.0]接管记录编辑时,设置键盘随着弹窗的关闭而消失
This commit is contained in:
@@ -301,10 +301,12 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
mTakeOverRecordInfo.level3Name = level3Name
|
||||
CallerTakeOverManager.updateRecord(mActivity,mTakeOverRecordInfo)
|
||||
clickListener?.onSaveReason(mTakeOverRecordInfo)
|
||||
clickListener?.closeWindow()
|
||||
hideFloatWindow()
|
||||
}
|
||||
//取消
|
||||
tvTakeOverCancel.setOnClickListener {
|
||||
clickListener?.closeWindow()
|
||||
hideFloatWindow()
|
||||
}
|
||||
}
|
||||
@@ -454,6 +456,7 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
}
|
||||
|
||||
fun hideFloatWindow() {
|
||||
etNoteInput.clearFocus()
|
||||
if (mFloatLayout.parent != null){
|
||||
mWindowManager!!.removeView(mFloatLayout)
|
||||
}
|
||||
@@ -481,6 +484,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
|
||||
interface ClickListener {
|
||||
fun onSaveReason(info: TakeOverRecordInfo)
|
||||
|
||||
fun closeWindow()
|
||||
}
|
||||
|
||||
override fun getCategoriesSuccess(list: List<CategoryInfo>) {
|
||||
|
||||
@@ -87,6 +87,10 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
override fun onSaveReason(info: TakeOverRecordInfo) {
|
||||
takeOverListAdapter?.notifyRecordItemChanged(info)
|
||||
}
|
||||
|
||||
override fun closeWindow() {
|
||||
takeOverReasonWindow = null
|
||||
}
|
||||
})
|
||||
}
|
||||
if(takeOverReasonWindow?.getWindowShowStatus() == true){
|
||||
|
||||
Reference in New Issue
Block a user