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

Commit 584f563e authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

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
parent 0c37a9ea
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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;