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

Commit a67c6f01 authored by Jeff Hao's avatar Jeff Hao Committed by Deepanshu Gupta
Browse files

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 e3abd2cc)
parent 409bd3d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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