File tree 1 file changed +6
-0
lines changed
app/src/main/java/com/duckduckgo/app/browser/webview
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package com.duckduckgo.app.browser.webview
18
18
19
19
import android.content.Context
20
20
import android.text.SpannableStringBuilder
21
+ import android.text.TextPaint
21
22
import android.text.method.LinkMovementMethod
22
23
import android.text.style.ClickableSpan
23
24
import android.text.style.URLSpan
@@ -98,6 +99,11 @@ class MaliciousSiteBlockedWarningLayout @JvmOverloads constructor(
98
99
override fun onClick (widget : View ) {
99
100
actionHandler()
100
101
}
102
+
103
+ override fun updateDrawState (ds : TextPaint ) {
104
+ ds.color = currentTextColor
105
+ ds.isUnderlineText = true
106
+ }
101
107
}
102
108
val htmlContent = context.getString(errorResource).html(context)
103
109
val spannableString = SpannableStringBuilder (htmlContent)
You can’t perform that action at this time.
0 commit comments