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

Commit a7cec30f authored by Alan Viverette's avatar Alan Viverette
Browse files

Resolve inflate attr against default package

Change-Id: I2de0f79fb4918770c9f816934b1fc4953073a4f1
Fixes: 38456890
Test: LayoutInflaterTest#testInclude
parent 4d3d0352
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -923,8 +923,11 @@ public abstract class LayoutInflater {
                            + " include tag: <include layout=\"@layout/layoutID\" />");
                }

                // Attempt to resolve the "?attr/name" string to an identifier.
                layout = context.getResources().getIdentifier(value.substring(1), null, null);
                // Attempt to resolve the "?attr/name" string to an attribute
                // within the default (e.g. application) package.
                layout = context.getResources().getIdentifier(
                        value.substring(1), "attr", context.getPackageName());

            }

            // The layout might be referencing a theme attribute.