Commit 594b4cd7 authored by bizzbyster's avatar bizzbyster

cleanup

parent 9d60a637
......@@ -173,11 +173,7 @@ class MessageParser @Inject constructor(val context: Application, private val co
builder.setSpan(object : ClickableSpan() {
override fun onClick(view: View) {
val tabsbuilder = CustomTabsIntent.Builder()
tabsbuilder.setToolbarColor(R.color.colorPrimary)
tabsbuilder.enableUrlBarHiding()
tabsbuilder.setCloseButtonIcon(BitmapFactory.decodeResource(view.context.resources, R.drawable.ic_arrow_downward_24dp))
tabsbuilder.setStartAnimations(view.context, R.anim.enter_from_right, R.anim.exit_to_left)
tabsbuilder.setExitAnimations(view.context, R.anim.enter_from_left, R.anim.exit_to_right)
tabsbuilder.setToolbarColor(ContextCompat.getColor(view.context, R.color.colorPrimary))
val customTabsIntent = tabsbuilder.build()
customTabsIntent.launchUrl(view.context, getUri(link))
}
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
</selector>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment