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

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

Merge "Allow Instant Apps to show toasts"

parents ab363e83 d16cc680
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1441,11 +1441,6 @@ public class NotificationManagerService extends SystemService {
                return ;
            }

            if (isCallerInstantApp(pkg)) {
                throw new SecurityException("Instant app " + pkg
                        + " is not allowed to create toasts");
            }

            final boolean isSystemToast = isCallerSystem() || ("android".equals(pkg));
            final boolean isPackageSuspended =
                    isPackageSuspendedForUser(pkg, Binder.getCallingUid());