MessageCenter input fields gets reset after attaching file.
Opened this issue · 0 comments
kunalchp commented
Steps to reproduce :
- Enter the data into the “Name”, “Email”, and “message” input fields
- Tap on the “Attach” icon
- Choose the image to attach
- Observe
Actual result:
The entered data is erased.
Expected result:
The file is attached and the entered data stays on in the fields.
It is because of below method in MessageCenterActivity
override fun onResume() {
super.onResume()
viewModel.onMessageViewStatusChanged(true)
handleDraftMessage(false)
clearNotifications()
}
onResume is called everytime the file is attached.
handleDraftMessage() resets all input fields.