Search in sources :

Example 1 with FirstTimeAssignUsernameFragment

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());
}
Also used : SeenUsernameTakeOverScreenEvent(com.waz.zclient.core.controllers.tracking.events.onboarding.SeenUsernameTakeOverScreenEvent) FirstTimeAssignUsernameFragment(com.waz.zclient.newreg.fragments.FirstTimeAssignUsernameFragment) GlobalTrackingController(com.waz.zclient.tracking.GlobalTrackingController) BlockedUserProfileFragment(com.waz.zclient.pages.main.connect.BlockedUserProfileFragment) Fragment(android.support.v4.app.Fragment) FirstTimeAssignUsernameFragment(com.waz.zclient.newreg.fragments.FirstTimeAssignUsernameFragment) ParticipantsDialogFragment(com.waz.zclient.pages.main.participants.dialog.ParticipantsDialogFragment) OptionsMenuFragment(com.waz.zclient.pages.main.participants.OptionsMenuFragment) PendingConnectRequestManagerFragment(com.waz.zclient.pages.main.connect.PendingConnectRequestManagerFragment) SendConnectRequestFragment(com.waz.zclient.pages.main.connect.SendConnectRequestFragment) CameraFragment(com.waz.zclient.pages.main.profile.camera.CameraFragment) PickUserFragment(com.waz.zclient.pages.main.pickuser.PickUserFragment) BaseFragment(com.waz.zclient.pages.BaseFragment)

Aggregations

Fragment (android.support.v4.app.Fragment)1 SeenUsernameTakeOverScreenEvent (com.waz.zclient.core.controllers.tracking.events.onboarding.SeenUsernameTakeOverScreenEvent)1 FirstTimeAssignUsernameFragment (com.waz.zclient.newreg.fragments.FirstTimeAssignUsernameFragment)1 BaseFragment (com.waz.zclient.pages.BaseFragment)1 BlockedUserProfileFragment (com.waz.zclient.pages.main.connect.BlockedUserProfileFragment)1 PendingConnectRequestManagerFragment (com.waz.zclient.pages.main.connect.PendingConnectRequestManagerFragment)1 SendConnectRequestFragment (com.waz.zclient.pages.main.connect.SendConnectRequestFragment)1 OptionsMenuFragment (com.waz.zclient.pages.main.participants.OptionsMenuFragment)1 ParticipantsDialogFragment (com.waz.zclient.pages.main.participants.dialog.ParticipantsDialogFragment)1 PickUserFragment (com.waz.zclient.pages.main.pickuser.PickUserFragment)1 CameraFragment (com.waz.zclient.pages.main.profile.camera.CameraFragment)1 GlobalTrackingController (com.waz.zclient.tracking.GlobalTrackingController)1