SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
386 stars 51 forks source link

I can't send messages after rotate my phone to landscape mode #44

Closed adriaaah closed 2 years ago

adriaaah commented 3 years ago

Describe the bug When I'm chatting, if I turn my phone to landscape mode, I can't send any more messages until I get back to the room list.

To Reproduce Steps to reproduce the behavior:

  1. Go to a room in portrait or landscape mode.
  2. Write a message or not.
  3. If you are in portrait mode, turn the phone to landscape mode.
  4. Expand the message or type one.
  5. Click Done button.
  6. Hide keyboard.
  7. Click send button.
  8. Message is not sent.
  9. Turn the phone to portrait mode.
  10. The part of the message written in landscape mode was erased.
  11. Click to send button.
  12. Message is not sent.
  13. Delete the message and write a new one.
  14. Click send button.
  15. Message is not sent.
  16. Return to the room list.
  17. Go to the room again.
  18. Click send button.
  19. Message sent.

Expected behavior Send message in landscape mode and portrait mode.

Smartphone (please complete the following information):

Additional context

Upstream relevance

SpiritCroc commented 3 years ago

Note to self: sounds like maybe the click listener gets lost upon orientation change.

However, I was not able to reproduce this on my device (Android 11) - maybe I need to recheck with an older Android version. Further note: when I click done button in landscape mode, it already sends the message. It does not make any difference if I close the keyboard first and use the app's send button instead, it still works without problems for me. I'm also on version 1.0.14.sc27.

SpiritCroc commented 2 years ago

Seems fixed upstream