Merge "Mark constructor as accessible in LayoutInflater."

This commit is contained in:
Jeff Hao
2014-03-28 21:41:20 +00:00
committed by Gerrit Code Review

View File

@@ -591,6 +591,7 @@ public abstract class LayoutInflater {
Object[] args = mConstructorArgs;
args[1] = attrs;
constructor.setAccessible(true);
final View view = constructor.newInstance(args);
if (view instanceof ViewStub) {
// always use ourselves when inflating ViewStub later