Merge "Fix getAttributeSetSourceResId to AttributeSet created from null."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7233ef9c09
@@ -1303,7 +1303,7 @@ public class ResourcesImpl {
|
||||
|
||||
@AnyRes
|
||||
static int getAttributeSetSourceResId(@Nullable AttributeSet set) {
|
||||
if (set == null) {
|
||||
if (set == null || !(set instanceof XmlBlock.Parser)) {
|
||||
return ID_NULL;
|
||||
}
|
||||
return ((XmlBlock.Parser) set).getSourceResId();
|
||||
|
||||
Reference in New Issue
Block a user