Hide the action bar on button press when necessary.