ostrya / PresencePublisher

An Android MQTT client that regularly publishes messages to notify about the device's presence
MIT License
79 stars 12 forks source link

Layout problem in the add message page #55

Closed CheJuJu closed 1 year ago

CheJuJu commented 2 years ago

Describe the bug

Dear developer!
 In the process of using, I found a bug in layout / display. As shown in the figure, in the Add message page, When the input ( name or topic ) is “space” , the message will still be created. This will result in the input of one space and the input of many spaces not seeing any difference in the message. This may be an adaptation problem. I suspect it is because you didn't restrict the input of spaces. App version is 2.4.1, my mobile phone is Pixel-2, screen resolution setting is 1080*1920, Android system is 12.0.
The above is a description of the problem. The overall experience of the software is good. You can see that the design is very attentive. Thank you very much for the efforts of the developers all the time. I hope to receive a reply.

image-20220814201638964

Expected behavior

I hope that the page can be set to scroll, or can set the limit of the input, so that the problem can be solved.

Steps to reproduce this error

  1. Select Message tag
  2. Click Add Message button
  3. Input some spaces
  4. Will see this error

Screenshots

image-20220814201638964

Environment

ostrya commented 2 years ago

I guess I can trim the string before checking for emptyness. Thanks for the suggestion.