[BUG] Search leaves app in inconsistent state #1587
Description
Describe the bug
Using the search can leave the app in an inconsistent state. If the search gets canceled, using the back button (top left), the keyboard is shown on the "Home" page. Entered text is not visible, but the error messages from the search are shown. E.g. if I enter less than three characters, the corresponding error is shown on the "Home" page (see screenshot 1). The menu is also affected by this mixed state and shows incorrect padding (see screenshot 2).
To Reproduce
Steps to reproduce the behavior:
- Go back and forth between the search and other pages several times.
- Switch to the search again and use the back button (top left).
- See the keyboard on "Home" page. If the keyboard is not shown, go back to step 1.
- Open the menu to see the incorrect padding.
Expected behavior
The keyboard is not shown on the "Home" page, and there should be no change to the menu.
Screenshots
Smartphone :
- Phone: Redmi Note 8 Pro
- OS version: 11 RP1A.200720.011
- Language: German
Additional context
I also occasionally experienced random app crashes in this state, which could be related to #1517.
Activity