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

Commit dc62340f authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Stopgap fix for layoutlib.

This is a temporary fix for changes made to TypedArray regrading theme
attributes.

Change-Id: I173fde6d8d3259479b0654ff331bc27bf2814fb0
parent baef8c1f
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -826,6 +826,11 @@ public final class BridgeTypedArray extends TypedArray {
        return null;
    }

    @Override
    public int[] extractThemeAttrs() {
        return null;
    }

    /**
     * Retrieve the raw TypedValue for the attribute at <var>index</var>.
     *
@@ -912,4 +917,9 @@ public final class BridgeTypedArray extends TypedArray {
    public String toString() {
        return Arrays.toString(mResourceData);
    }

    static TypedArray obtain(Resources res, int len) {
        return res instanceof BridgeResources ?
                new BridgeTypedArray(((BridgeResources) res), null, len, true) : null;
    }
}
+1 −2
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ public class TypedArray_Delegate {

    @LayoutlibDelegate
    /*package*/ static TypedArray obtain(Resources res, int len) {
        // FIXME
        return null;
        return BridgeTypedArray.obtain(res, len);
    }
}