Search in sources :

Example 1 with MemberScan

use of co.krypt.krypton.team.invite.inperson.member.MemberScan in project krypton-android by kryptco.

the class IntroFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    final View rootView = inflater.inflate(R.layout.fragment_teams_intro, container, false);
    Button createTeamButton = rootView.findViewById(R.id.createTeamOBButton);
    createTeamButton.setOnClickListener(v -> {
        new CreateTeamProgress(getContext()).reset();
        new JoinTeamProgress(getContext()).reset();
        startActivity(new Intent(v.getContext(), TeamOnboardingActivity.class));
    });
    Button joinTeamButton = rootView.findViewById(R.id.joinTeamButton);
    joinTeamButton.setOnClickListener(b -> {
        new JoinTeamProgress(getContext()).reset();
        new CreateTeamProgress(getContext()).reset();
        Transitions.beginSlide(this).replace(R.id.fragmentOverlay, new MemberScan()).addToBackStack(null).commitAllowingStateLoss();
    });
    return rootView;
}
Also used : TeamOnboardingActivity(co.krypt.krypton.team.onboarding.TeamOnboardingActivity) Button(android.widget.Button) MemberScan(co.krypt.krypton.team.invite.inperson.member.MemberScan) CreateTeamProgress(co.krypt.krypton.team.onboarding.create.CreateTeamProgress) JoinTeamProgress(co.krypt.krypton.team.onboarding.join.JoinTeamProgress) Intent(android.content.Intent) View(android.view.View)

Aggregations

Intent (android.content.Intent)1 View (android.view.View)1 Button (android.widget.Button)1 MemberScan (co.krypt.krypton.team.invite.inperson.member.MemberScan)1 TeamOnboardingActivity (co.krypt.krypton.team.onboarding.TeamOnboardingActivity)1 CreateTeamProgress (co.krypt.krypton.team.onboarding.create.CreateTeamProgress)1 JoinTeamProgress (co.krypt.krypton.team.onboarding.join.JoinTeamProgress)1