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

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

Merge "Access process fields only when valid"

parents 7189a99e 0157327b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -947,9 +947,9 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
    }

    public void postNotification() {
        if (isForeground && foregroundNoti != null) {
            final int appUid = appInfo.uid;
            final int appPid = app.getPid();
        if (isForeground && foregroundNoti != null) {
            // Do asynchronous communication with notification manager to
            // avoid deadlocks.
            final String localPackageName = packageName;