Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebdf60e7 authored by Roozbeh Pournader's avatar Roozbeh Pournader Committed by Android Git Automerger
Browse files

am 0221328c: am b3538082: am 5362f273: Merge "Fix line height problem with...

am 0221328c: am b3538082: am 5362f273: Merge "Fix line height problem with inline images in StaticLayout." into mnc-dr-dev

* commit '0221328c':
  Fix line height problem with inline images in StaticLayout.
parents 2de89ae8 0221328c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -627,7 +627,9 @@ public class StaticLayout extends Layout {

                chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class);

                if (chooseHt.length != 0) {
                if (chooseHt.length == 0) {
                    chooseHt = null; // So that out() would not assume it has any contents
                } else {
                    if (chooseHtv == null ||
                        chooseHtv.length < chooseHt.length) {
                        chooseHtv = ArrayUtils.newUnpaddedIntArray(chooseHt.length);