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

Commit 2e6ab9de authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Clear minimum font metrics from StaticLayout.Builder" into main

parents 293b0661 0fac5f9d
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) {