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

Commit 0fac5f9d authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Clear minimum font metrics from StaticLayout.Builder

Bug: 310117531
Test: atest CtsGraphicsTestCases CtsTextTestCases CtsWidgetTestCases
Change-Id: I37ce7e783894f2b8293423262e9d0f8745991640
parent bdf96b34
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ public class StaticLayout extends Layout {
            b.mHyphenationFrequency = Layout.HYPHENATION_FREQUENCY_NONE;
            b.mJustificationMode = Layout.JUSTIFICATION_MODE_NONE;
            b.mLineBreakConfig = LineBreakConfig.NONE;
            b.mMinimumFontMetrics = null;
            return b;
        }

@@ -130,6 +131,7 @@ public class StaticLayout extends Layout {
            b.mText = null;
            b.mLeftIndents = null;
            b.mRightIndents = null;
            b.mMinimumFontMetrics = null;
            sPool.release(b);
        }

@@ -139,6 +141,7 @@ public class StaticLayout extends Layout {
            mPaint = null;
            mLeftIndents = null;
            mRightIndents = null;
            mMinimumFontMetrics = null;
        }

        public Builder setText(CharSequence source) {