private void doUnbindLocked() { service = null; GoroService.unbind(context, this); }
private synchronized void unbindIfRequired() { if (bindRequested && updateDelegate(null)) { bindRequested = false; GoroService.unbind(context, this); } }
@Override public void unbind() { if (updateDelegate(null)) { GoroService.unbind(context, this); unbindRequested = false; } else { unbindRequested = true; } }