Merge "No need to post FGS notifications after process death" into sc-qpr1-dev

This commit is contained in:
Chris Tate
2021-09-23 17:20:47 +00:00
committed by Android (Google) Code Review

View File

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