I read your coding and I saw your pause button during the recording is not activated.
In your recordfragmnet, //mPauseButton.setVisibility(View.VISIBLE); this command is deactivated by "//".
likewise, //mPauseButton.setVisibility(View.GONE); this one is also not activated.
Simply removing // for mPauseButton will activate the function that you made.