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

Commit bc3323be authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

Fix the layoutlib to still support fill_parent.

Change-Id: I5e1825f1f853cf9e31b2ee262edce636a030429d
parent 2e1818a4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -927,6 +927,7 @@ public final class BridgeContext extends Context {
        return null;
    }

    @Override
    public File getExternalCacheDir() {
        // TODO Auto-generated method stub
        return null;
@@ -964,6 +965,7 @@ public final class BridgeContext extends Context {
        return null;
    }

    @Override
    public File getExternalFilesDir(String type) {
        // TODO Auto-generated method stub
        return null;
+4 −2
Original line number Diff line number Diff line
@@ -392,7 +392,8 @@ public final class BridgeTypedArray extends TypedArray {

        if (s == null) {
            return defValue;
        } else if (s.equals(BridgeConstants.MATCH_PARENT)) {
        } else if (s.equals(BridgeConstants.MATCH_PARENT) ||
                s.equals(BridgeConstants.FILL_PARENT)) {
            return LayoutParams.MATCH_PARENT;
        } else if (s.equals(BridgeConstants.WRAP_CONTENT)) {
            return LayoutParams.WRAP_CONTENT;
@@ -460,7 +461,8 @@ public final class BridgeTypedArray extends TypedArray {

        if (s == null) {
            return defValue;
        } else if (s.equals(BridgeConstants.MATCH_PARENT)) {
        } else if (s.equals(BridgeConstants.MATCH_PARENT) ||
                s.equals(BridgeConstants.FILL_PARENT)) {
            return LayoutParams.MATCH_PARENT;
        } else if (s.equals(BridgeConstants.WRAP_CONTENT)) {
            return LayoutParams.WRAP_CONTENT;