Checking for mState here is for the logic that enable may cause different action.
For disable case there is only single action so does not check mState.
I added the comment to make it more clear