We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f23a7 commit 6972ae2Copy full SHA for 6972ae2
1 file changed
android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/TextSelectionColors.kt
@@ -29,9 +29,7 @@ fun TextView.applySelectionColors(
29
private fun TextView.applySelectionHandleTint(
30
@ColorInt color: Int,
31
) {
32
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
33
- return
34
- }
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return
35
36
val handles: List<Pair<HandleGetter, HandleSetter>> =
37
listOf(
@@ -44,7 +42,6 @@ private fun TextView.applySelectionHandleTint(
44
42
try {
45
43
getter(this)?.mutate()?.also { DrawableCompat.setTint(it, color) }?.let { setter(this, it) }
46
} catch (e: LinkageError) {
47
- // Defensive: OEM TextView variants may strip individual handle accessors.
48
Log.w(TAG, "Selection handle tint skipped: ${e.message}")
49
}
50
0 commit comments