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

Commit 7233ef9c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix getAttributeSetSourceResId to AttributeSet created from null."

parents e035a1fd 02d7f45a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();