Ignore justified in layoutlib for the moment
In Change Icbfab2fa, a new justified alignment for text is implemented. We make layoutlib compatible with those changes without implementing the new alignment. Test: layoutlib tests Change-Id: Ic8254f0f4b2915d654124874fee72c90fd8aa6c6
This commit is contained in:
@@ -1062,8 +1062,6 @@ public class Paint_Delegate {
|
||||
|
||||
@LayoutlibDelegate
|
||||
/*package*/ static void nSetWordSpacing(long nativePaint, float wordSpacing) {
|
||||
Bridge.getLog().fidelityWarning(LayoutLog.TAG_TEXT_RENDERING,
|
||||
"Paint.setWordSpacing() not supported.", null, null);
|
||||
Paint_Delegate delegate = sManager.getDelegate(nativePaint);
|
||||
if (delegate == null) {
|
||||
return;
|
||||
|
||||
@@ -75,7 +75,8 @@ public class StaticLayout_Delegate {
|
||||
/*package*/ static void nSetupParagraph(long nativeBuilder, char[] text, int length,
|
||||
float firstWidth, int firstWidthLineCount, float restWidth,
|
||||
int[] variableTabStops, int defaultTabStop, int breakStrategy,
|
||||
int hyphenationFrequency) {
|
||||
int hyphenationFrequency, boolean isJustified) {
|
||||
// TODO: implement justified alignment
|
||||
Builder builder = sBuilderManager.getDelegate(nativeBuilder);
|
||||
if (builder == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user