Skip to content

Additional fix for text wrap issue in Nearby #1369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 26, 2018

Conversation

misaochan
Copy link
Member

@misaochan misaochan commented Mar 26, 2018

One of the items needed in #1329 . I was wondering why the check for text wrap doesn't work for me, and it turns out that getLineCount() was returning 0. According to documentation, it seems that happens when the internal layout has not been built.

This seems like a simple workaround. Additionally, there is no need to check all the line lengths when "Directions" is the longest, so checking for that should simplify things.

Tested on Android 7.0 Samsung Galaxy s7

Would ideally be merged prior to release #1212

@misaochan misaochan requested a review from neslihanturan March 26, 2018 10:28
@neslihanturan
Copy link
Collaborator

Thanks for optimizing @misaochan

@neslihanturan neslihanturan merged commit 3d11593 into commons-app:2.7.x-release Mar 26, 2018
@misaochan misaochan deleted the nearby-fixes branch March 27, 2018 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants