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

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

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

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

* commit 'ebdf60e7':
  Fix line height problem with inline images in StaticLayout.
parents 072c5bdf ebdf60e7
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);