Skip to content
Commit 7e440e0e authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

Use breakstrategy and hypenation properties in ImageFloatingTextView

Hypenation and break strategy are 2 important configuration parameters for PrecomputedText.
We have to use the same hypenation and break strategy in both PrecomputedText and StaticLayout creation to make use of the power of the PrecomputedText.
Instead of using hard coded in StaticLayout creation, this CL sets these parameters in the constructor and use the properties.

Bug: 289250881
Test: run ImageFloatingTextViewTest and Manual. Post a bigtext notification with this change and without and compare the result. Result should be the same.
Change-Id: I65576ed822f32622d44d30a689531a9b8fa2ba07
parent ebe33c2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment