zulip-android-legacy
zulip-android-legacy copied to clipboard
Fix minor bug in AutoCompleteTextView
This PR fixes limits maxLines in Stream's AutoCompleteTextView to 1.
- Without this property,
AutoCompleteTextViewcan display multiple lines at a time and thus giving poor User experience.
Before

Now, it will work fine because maxLines are limited to one.
Automated message from Dropbox CLA bot
@yadav-rahul, it looks like you've already signed the Dropbox CLA. Thanks!
hmm.. I think on small screen devices this can be a problem. @kunall17 what are your thoughts on this?
Actually Topic's AutoCompleteTextView already has this property(android:maxLines="1"). Implementing same in Stream's AutoCompleteTextView would look better :)
@kunall17 What are your views on it?
@timabbott @kunall17 Please review this PR :)
Mostly the stream wouldn't be of more that 15 chars which means 2-3 lines (At the max) and by providing maxlines it would hide the text and giving 1 line more doesn't look that bad!
I could imagine rebalancing a bit how much space each of stream and topic get in that line (or giving each their own line)