use of com.waz.zclient.pages.main.participants.OptionsMenuControl in project wire-android by wireapp.
the class PendingConnectRequestManagerFragment method onCreateView.
//////////////////////////////////////////////////////////////////////////////////////////
//
// Lifecycle
//
//////////////////////////////////////////////////////////////////////////////////////////
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_connect_request_pending_manager, container, false);
optionsMenuControl = new OptionsMenuControl();
if (savedInstanceState == null) {
String userId = getArguments().getString(ARGUMENT_USER_ID);
String conversationId = getArguments().getString(ARGUMENT_CONVERSATION_ID);
ConnectRequestLoadMode loademode = ConnectRequestLoadMode.valueOf(getArguments().getString(ARGUMENT_LOAD_MODE));
userRequester = IConnectStore.UserRequester.valueOf(getArguments().getString(ARGUMENT_USER_REQUESTER));
getChildFragmentManager().beginTransaction().add(R.id.fl__pending_connect_request, PendingConnectRequestFragment.newInstance(userId, conversationId, loademode, userRequester), PendingConnectRequestFragment.TAG).commit();
getChildFragmentManager().beginTransaction().add(R.id.fl__pending_connect_request__settings_box, OptionsMenuFragment.newInstance(false), OptionsMenuFragment.TAG).commit();
}
return view;
}
use of com.waz.zclient.pages.main.participants.OptionsMenuControl in project wire-android by wireapp.
the class ConversationListManagerFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_conversation_list_manager, container, false);
mainContainer = ViewUtils.getView(view, R.id.fl__conversation_list_main);
startuiLoadingIndicatorView = ViewUtils.getView(view, R.id.liv__conversations__loading_indicator);
listLoadingIndicatorView = ViewUtils.getView(view, R.id.lbv__conversation_list__loading_indicator);
startuiLoadingIndicatorView.setColor(getResources().getColor(R.color.people_picker__loading__color));
listLoadingIndicatorView.setColor(getControllerFactory().getAccentColorController().getColor());
confirmationMenu = ViewUtils.getView(view, R.id.cm__confirm_action_light);
confirmationMenu.setVisibility(View.GONE);
confirmationMenu.resetFullScreenPadding();
optionsMenuControl = new OptionsMenuControl();
if (savedInstanceState == null) {
// When re-starting app to open into specific page, child fragments may exist despite savedInstanceState == null
if (getControllerFactory().getPickUserController().isShowingUserProfile()) {
getControllerFactory().getPickUserController().hideUserProfile();
}
if (getControllerFactory().getPickUserController().isShowingPickUser(IPickUserController.Destination.CONVERSATION_LIST)) {
getControllerFactory().getPickUserController().hidePickUser(IPickUserController.Destination.CONVERSATION_LIST, false);
Fragment pickUserFragment = getChildFragmentManager().findFragmentByTag(PickUserFragment.TAG);
if (pickUserFragment != null) {
getChildFragmentManager().popBackStack(PickUserFragment.TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
}
}
getChildFragmentManager().beginTransaction().add(R.id.fl__conversation_list_main, ConversationListFragment.newInstance(ConversationListFragment.Mode.NORMAL), ConversationListFragment.TAG).add(R.id.fl__conversation_list__settings_box, OptionsMenuFragment.newInstance(true), OptionsMenuFragment.TAG).commit();
}
return view;
}
Aggregations