Merge "Access process fields only when valid"
This commit is contained in:
committed by
Android (Google) Code Review
commit
694f1c1a90
@@ -947,9 +947,9 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
|
||||
}
|
||||
|
||||
public void postNotification() {
|
||||
final int appUid = appInfo.uid;
|
||||
final int appPid = app.getPid();
|
||||
if (isForeground && foregroundNoti != null) {
|
||||
final int appUid = appInfo.uid;
|
||||
final int appPid = app.getPid();
|
||||
// Do asynchronous communication with notification manager to
|
||||
// avoid deadlocks.
|
||||
final String localPackageName = packageName;
|
||||
|
||||
Reference in New Issue
Block a user