Merge "Fix performance regression create_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent_min"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b4f6f16c2e
@@ -112,6 +112,7 @@ public class StaticLayout extends Layout {
|
||||
b.mBreakStrategy = Layout.BREAK_STRATEGY_SIMPLE;
|
||||
b.mHyphenationFrequency = Layout.HYPHENATION_FREQUENCY_NONE;
|
||||
b.mJustificationMode = Layout.JUSTIFICATION_MODE_NONE;
|
||||
b.mLineBreakConfig = LineBreakConfig.NONE;
|
||||
return b;
|
||||
}
|
||||
|
||||
@@ -455,7 +456,7 @@ public class StaticLayout extends Layout {
|
||||
@Nullable private int[] mRightIndents;
|
||||
private int mJustificationMode;
|
||||
private boolean mAddLastLineLineSpacing;
|
||||
private LineBreakConfig mLineBreakConfig;
|
||||
private LineBreakConfig mLineBreakConfig = LineBreakConfig.NONE;
|
||||
|
||||
private final Paint.FontMetricsInt mFontMetricsInt = new Paint.FontMetricsInt();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user