Merge "No need to post FGS notifications after process death" into sc-qpr1-dev am: 2ce4cf79b1 am: b9ba2ce0a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15888242 Change-Id: I5311034eee967a44f9e3767ad81d6c8090b4f4fd
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user