Skip to content

Commit a67c6f0

Browse files
jeffyhaodeepanshu-
authored andcommitted
Mark constructor as accessible in LayoutInflater. [DO NOT MERGE]
Needed to bypass new access checks for fields, methods, and constructors. Change-Id: I8ff0b44a6cb4f4af1c72734bca366d8b89528030 (cherry picked from commit e3abd2c)
1 parent 409bd3d commit a67c6f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/java/android/view/LayoutInflater.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ public final View createView(String name, String prefix, AttributeSet attrs)
591591
Object[] args = mConstructorArgs;
592592
args[1] = attrs;
593593

594+
constructor.setAccessible(true);
594595
final View view = constructor.newInstance(args);
595596
if (view instanceof ViewStub) {
596597
// always use ourselves when inflating ViewStub later

0 commit comments

Comments
 (0)