-
-
Save KaustubhPatange/fc0f3cecdf6e9d60a1b08856e1b7bed0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in :welcome module | |
@AndroidEntryPoint | |
class WelcomeFragment : Fragment(R.layout.fragment_welcome) { | |
@Inject lateinit var welcomeButtonClick: WelcomeButtonClick // <-- Injected (provides WelcomeButtonClickImpl) | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
... | |
val button = view.findViewById<Button>(R.id.btn) | |
button.setOnClickListener { | |
welcomeButtonClick.goToNext() // <-- Navigating to "HomeFragment" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment