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

Commit c7ac9f01 authored by Adam Powell's avatar Adam Powell
Browse files

Restrict reflection access to INotificationManager from Toast

Bug: 123768917
Change-Id: Ice757d9f10f08f6d50dc34ca5c459e44d1ade10d
parent affa55b4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -341,10 +341,10 @@ public class Toast {
    // the proper ordering of these system-wide.
    // =======================================================================================

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private static INotificationManager sService;

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    static private INotificationManager getService() {
        if (sService != null) {
            return sService;