Merge "Mark constructor as accessible in LayoutInflater. [DO NOT MERGE]" into klp-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fca5e5577f
@@ -591,6 +591,7 @@ public abstract class LayoutInflater {
|
|||||||
Object[] args = mConstructorArgs;
|
Object[] args = mConstructorArgs;
|
||||||
args[1] = attrs;
|
args[1] = attrs;
|
||||||
|
|
||||||
|
constructor.setAccessible(true);
|
||||||
final View view = constructor.newInstance(args);
|
final View view = constructor.newInstance(args);
|
||||||
if (view instanceof ViewStub) {
|
if (view instanceof ViewStub) {
|
||||||
// always use ourselves when inflating ViewStub later
|
// always use ourselves when inflating ViewStub later
|
||||||
|
|||||||
Reference in New Issue
Block a user