Merge "Ensure that binding state is false when handling dead binder"

This commit is contained in:
TreeHugger Robot
2020-09-18 15:35:22 +00:00
committed by Android (Google) Code Review

View File

@@ -225,6 +225,7 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I
if (mService != null) {
mService.asBinder().unlinkToDeath(this, 0);
}
mBinding = false;
mService = null;
mServiceDied = true;
cancelScheduledUnbind();