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

Commit e61fc256 authored by Cătălin Tudor's avatar Cătălin Tudor
Browse files

Fix hidden usage sConstructorMap

In LayoutInflater, sConstructorMap was marked with @UnsupportedAppUsage.

After doing some research, the main reason for accessing this appears to
be related to classloaders (fixed in CL=839342, method=verifyClassLoader).
As this is fixed and creating a public API for a cache doesn't seem
apropriate, dark grey listing it seems the best solution.

Bug: 123769490
Test: android.view.cts.LayoutInflaterTest
Change-Id: I104ce17bb4083f7049bbb512090b31f8360cb23b
parent 2148e7f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public abstract class LayoutInflater {
    static final Class<?>[] mConstructorSignature = new Class[] {
            Context.class, AttributeSet.class};

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123769490)
    private static final HashMap<String, Constructor<? extends View>> sConstructorMap =
            new HashMap<String, Constructor<? extends View>>();