Merge "Don't call onNullBinding when the service host is dead" into sc-dev am: e6436d95f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14739098 Change-Id: I4d9c7464005bdad716df41330bc76ecd7528e113
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user