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:
Jerome Gaillard
2017-02-01 17:12:02 +00:00
parent 0c37a9eafb
commit 584f563e5b
2 changed files with 2 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;