transistor
transistor copied to clipboard
Find Station results not showing if the searched text is changed before the results show
Describe the bug In the "Find Station" dialog, when entering three letters the app starts to fetch results. Before the result shows (i.e., the loading circle is still there), if one changes the searched text quickly, the dialog hangs with the loading circle and the results never show.
To Reproduce Steps to reproduce the behavior:
- tap on the "Add NEW STATION" button
- enter a station name (say "aaa")
- quickly before the result show, change the text (say to "a")
Expected behavior The results of either the old text or the new text should show.
Screenshots
Device:
- Device: Pixel 2
- OS: Android Nougat
- Version 7.1.1
Additional context
Oh, and I found that this happens only if you enter a text longer than three (thus the auto search starts), and then change the text to another one shorter than three. I think this may have something to do with the auto search logic.