Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
- val bundle = Bundle()
- nextbtntwo.setOnClickListener({
- if (!TextUtils.isEmpty(etTitle.getText()) &&
- !TextUtils.isEmpty(etMaterials.getText()) &&
- !TextUtils.isEmpty(etTime.getText())) {
- bundle.putString(
- "Title", etTitle.toString())
- bundle.putString(
- "Materials", etMaterials.toString())
- bundle.putString(
- "Time", etTime.toString()
- )
- findNavController().navigate(R.id.action_shareInfoFragment_to_shareLinkFragment)
- } else {
- requireActivity().showToast("Please enter data")
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment