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

Commit 689a1093 authored by Diego Perez's avatar Diego Perez Committed by Android (Google) Code Review
Browse files

Merge "Try to resolve IDs also as enums"

parents 3e27a25b f627cbb1
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -638,7 +638,15 @@ public final class BridgeTypedArray extends TypedArray {
            }
        }

        // not a direct id valid reference? resolve it
        // not a direct id valid reference. First check if it's an enum (this is a corner case
        // for attributes that have a reference|enum type), then fallback to resolve
        // as an ID without prefix.
        Integer enumValue = resolveEnumAttribute(index);
        if (enumValue != null) {
            return enumValue;
        }

        // Ok, not an enum, resolve as an ID
        Integer idValue;

        if (resValue.isFramework()) {