Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private val customTabActivityHelper: CustomTabActivityHelper =
CustomTabActivityHelper(this, lifecycle, this)
override fun onClick(view: View) {
val viewId =
val uri = Uri.parse(urlEditText.text.toString())
when (viewId) { -> customTabActivityHelper.mayLaunchUrl(uri) -> {
val customTabsIntent = CustomTabsIntent.Builder(customTabActivityHelper.session)
this, uri, WebviewFallback())
}//Unkown View Clicked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment