use of com.waz.zclient.newreg.fragments.FirstTimeAssignUsernameFragment in project wire-android by wireapp.
the class ConversationListManagerFragment method showFirstAssignUsernameScreen.
private void showFirstAssignUsernameScreen(String name, String username) {
// Check if username screen is already shown
Fragment fragment = getChildFragmentManager().findFragmentById(R.id.fl__conversation_list_main);
if (fragment instanceof FirstTimeAssignUsernameFragment) {
return;
}
getChildFragmentManager().beginTransaction().setCustomAnimations(R.anim.fade_in, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out).replace(R.id.fl__conversation_list_main, FirstTimeAssignUsernameFragment.newInstance(name, username), FirstTimeAssignUsernameFragment.TAG).addToBackStack(FirstTimeAssignUsernameFragment.TAG).commitAllowingStateLoss();
((BaseScalaActivity) getActivity()).injectJava(GlobalTrackingController.class).tagEvent(new SeenUsernameTakeOverScreenEvent());
}
Aggregations