Merge "Fix issue #37470038: API Review: ServiceConnection.onBindingDead()" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
232ff0bdc8
@@ -9894,7 +9894,7 @@ package android.content {
|
||||
}
|
||||
|
||||
public abstract interface ServiceConnection {
|
||||
method public default void onBindingDead(android.content.ComponentName);
|
||||
method public default void onBindingDied(android.content.ComponentName);
|
||||
method public abstract void onServiceConnected(android.content.ComponentName, android.os.IBinder);
|
||||
method public abstract void onServiceDisconnected(android.content.ComponentName);
|
||||
}
|
||||
|
||||
@@ -10468,7 +10468,7 @@ package android.content {
|
||||
}
|
||||
|
||||
public abstract interface ServiceConnection {
|
||||
method public default void onBindingDead(android.content.ComponentName);
|
||||
method public default void onBindingDied(android.content.ComponentName);
|
||||
method public abstract void onServiceConnected(android.content.ComponentName, android.os.IBinder);
|
||||
method public abstract void onServiceDisconnected(android.content.ComponentName);
|
||||
}
|
||||
|
||||
@@ -9928,7 +9928,7 @@ package android.content {
|
||||
}
|
||||
|
||||
public abstract interface ServiceConnection {
|
||||
method public default void onBindingDead(android.content.ComponentName);
|
||||
method public default void onBindingDied(android.content.ComponentName);
|
||||
method public abstract void onServiceConnected(android.content.ComponentName, android.os.IBinder);
|
||||
method public abstract void onServiceDisconnected(android.content.ComponentName);
|
||||
}
|
||||
|
||||
@@ -1598,7 +1598,7 @@ public final class LoadedApk {
|
||||
mConnection.onServiceDisconnected(name);
|
||||
}
|
||||
if (dead) {
|
||||
mConnection.onBindingDead(name);
|
||||
mConnection.onBindingDied(name);
|
||||
}
|
||||
// If there is a new service, it is now connected.
|
||||
if (service != null) {
|
||||
|
||||
@@ -61,6 +61,6 @@ public interface ServiceConnection {
|
||||
* @param name The concrete component name of the service whose
|
||||
* connection is dead.
|
||||
*/
|
||||
default void onBindingDead(ComponentName name) {
|
||||
default void onBindingDied(ComponentName name) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user