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

Commit 282e869f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict reflection access to INotificationManager from Toast"

parents 5a01b5a7 c7ac9f01
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;