Merge "No need to post FGS notifications after process death"

This commit is contained in:
TreeHugger Robot
2021-09-21 01:09:48 +00:00
committed by Android (Google) Code Review

View File

@@ -947,7 +947,7 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
}
public void postNotification() {
if (isForeground && foregroundNoti != null) {
if (isForeground && foregroundNoti != null && app != null) {
final int appUid = appInfo.uid;
final int appPid = app.getPid();
// Do asynchronous communication with notification manager to