「Update」
1、修复TextView 没有写内容的时候导致的崩溃异常
This commit is contained in:
@@ -79,7 +79,7 @@ public class SkinAttribute {
|
||||
if (isNumeric(attributeValue.substring(1))) {
|
||||
resId = Integer.parseInt(attributeValue.substring(1));
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
} catch (Exception e) {
|
||||
// 由于有时候TextView会直接配置文字,而不是用 @string/XXX 所以会导致这里转换异常,车里简单的处理异常跳过即可
|
||||
//e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user