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;
}
Aggregations