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

Commit 1ca584a2 authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

LayoutLib: remove assert in resource resolution.

These code paths were valid in case there's a mismatch
between the style/theme/version of Android

Change-Id: I8cb3b2a3f3a1ef5c37ccec0c8ddbb7add69bfbe0
parent 82314c01
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -345,8 +345,6 @@ public final class BridgeTypedArray extends TypedArray {
            Bridge.getLog().error(LayoutLog.TAG_RESOURCES_FORMAT, e.getMessage(), e, null /*data*/);
        }

        assert false;

        return null;
    }

@@ -430,8 +428,6 @@ public final class BridgeTypedArray extends TypedArray {
                    "\"%1$s\" in attribute \"%2$s\" is not a valid format.",
                    s, mNames[index]), null /*data*/);

        assert false;

        return defValue;
    }

@@ -569,8 +565,6 @@ public final class BridgeTypedArray extends TypedArray {
                    "\"%1$s\" in attribute \"%2$s\" cannont be converted to a fraction.",
                    value, mNames[index]), null /*data*/);

        assert false;

        return defValue;
    }

@@ -686,8 +680,6 @@ public final class BridgeTypedArray extends TypedArray {
                    "Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index]),
                    resValue);

        assert false;

        return defValue;
    }