Skip to content

Commit fca5e55

Browse files
deepanshu-Android (Google) Code Review
authored andcommitted
Merge "Mark constructor as accessible in LayoutInflater. [DO NOT MERGE]" into klp-modular-dev
2 parents 76aff1f + a67c6f0 commit fca5e55

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)