Merge "Don't call onNullBinding when the service host is dead" into sc-dev
This commit is contained in:
@@ -2060,13 +2060,14 @@ public final class LoadedApk {
|
|||||||
}
|
}
|
||||||
if (dead) {
|
if (dead) {
|
||||||
mConnection.onBindingDied(name);
|
mConnection.onBindingDied(name);
|
||||||
}
|
|
||||||
// If there is a new viable service, it is now connected.
|
|
||||||
if (service != null) {
|
|
||||||
mConnection.onServiceConnected(name, service);
|
|
||||||
} else {
|
} else {
|
||||||
// The binding machinery worked, but the remote returned null from onBind().
|
// If there is a new viable service, it is now connected.
|
||||||
mConnection.onNullBinding(name);
|
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