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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14739098

Change-Id: Ic8f9f6e960add3f169c8d148ce92b921154b1b08
This commit is contained in:
Jing Ji
2021-05-28 03:16:10 +00:00
committed by Automerger Merge Worker

View File

@@ -2060,13 +2060,14 @@ public final class LoadedApk {
}
if (dead) {
mConnection.onBindingDied(name);
}
// If there is a new viable service, it is now connected.
if (service != null) {
mConnection.onServiceConnected(name, service);
} else {
// The binding machinery worked, but the remote returned null from onBind().
mConnection.onNullBinding(name);
// If there is a new viable service, it is now connected.
if (service != null) {
mConnection.onServiceConnected(name, service);
} else {
// The binding machinery worked, but the remote returned null from onBind().
mConnection.onNullBinding(name);
}
}
}