Merge "Don't call onNullBinding when the service host is dead" into sc-dev

This commit is contained in:
Jing Ji
2021-05-28 01:35:24 +00:00
committed by Android (Google) Code Review

View File

@@ -2060,7 +2060,7 @@ public final class LoadedApk {
} }
if (dead) { if (dead) {
mConnection.onBindingDied(name); mConnection.onBindingDied(name);
} } else {
// If there is a new viable service, it is now connected. // If there is a new viable service, it is now connected.
if (service != null) { if (service != null) {
mConnection.onServiceConnected(name, service); mConnection.onServiceConnected(name, service);
@@ -2069,6 +2069,7 @@ public final class LoadedApk {
mConnection.onNullBinding(name); mConnection.onNullBinding(name);
} }
} }
}
public void doDeath(ComponentName name, IBinder service) { public void doDeath(ComponentName name, IBinder service) {
synchronized (this) { synchronized (this) {