removeFragmentByTag(DIALOG_TAG);
- if (mService != null && mService.getState() == State.CONNECTED)
+ if (mService != null && (mService.getState() == State.CONNECTED || mService.getState() == State.CONNECTING))
{
profileInfo.putBoolean(PROFILE_RECONNECT, mService.getProfile().getId() == profile.getId());