Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageCenter input fields gets reset after attaching file. #27

Open
kunalchp opened this issue Jan 4, 2024 · 0 comments
Open

MessageCenter input fields gets reset after attaching file. #27

kunalchp opened this issue Jan 4, 2024 · 0 comments

Comments

@kunalchp
Copy link

kunalchp commented Jan 4, 2024

Steps to reproduce :

  1. Enter the data into the “Name”, “Email”, and “message” input fields
  2. Tap on the “Attach” icon
  3. Choose the image to attach
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant