Merge "Simplify binderDied() method"

This commit is contained in:
TreeHugger Robot
2018-10-11 18:37:38 +00:00
committed by Android (Google) Code Review

View File

@@ -147,12 +147,9 @@ public class ContextHubClientBroker extends IContextHubClient.Stub
/**
* Invoked when the underlying binder of this broker has died at the client process.
*/
@Override
public void binderDied() {
try {
IContextHubClient.Stub.asInterface(this).close();
} catch (RemoteException e) {
Log.e(TAG, "RemoteException while closing client on death", e);
}
close();
}
/**