Update fragment state.