OSDN Git Service

LayoutLib: remove assert in resource resolution.
authorXavier Ducrohet <xav@android.com>
Sat, 19 Feb 2011 02:48:08 +0000 (18:48 -0800)
committerXavier Ducrohet <xav@android.com>
Sat, 19 Feb 2011 02:48:08 +0000 (18:48 -0800)
These code paths were valid in case there's a mismatch
between the style/theme/version of Android

Change-Id: I8cb3b2a3f3a1ef5c37ccec0c8ddbb7add69bfbe0

tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java

index 99c217d..c1d7600 100644 (file)
@@ -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;
     }