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

Commit 08ea918c authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Add isElegantHeight to Layoutlib

Add the native stub methods for isElegantHeight in Paint.

Change-Id: Iaddde36528fb452e5a150ab35687da781091d14c
parent c726f6b5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -427,6 +427,16 @@ public class Paint_Delegate {
                "Paint.setShadowLayer is not supported.", null, null /*data*/);
    }

    @LayoutlibDelegate
    /*package*/ static boolean isElegantTextHeight(Paint thisPaint) {
        return false;
    }

    @LayoutlibDelegate
    /*package*/ static void setElegantTextHeight(Paint thisPaint, boolean elegant) {
        // TODO
    }

    @LayoutlibDelegate
    /*package*/ static float getTextSize(Paint thisPaint) {
        // get the delegate from the native int.