mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Rename
This commit is contained in:
parent
808c401675
commit
c302148e89
1 changed files with 3 additions and 3 deletions
|
@ -43,14 +43,14 @@ class SpanUtils @Inject constructor() {
|
|||
}
|
||||
|
||||
// Workaround for https://issuetracker.google.com/issues/188454876
|
||||
private fun canUseTextFuture(charSequence: Spanned): Boolean {
|
||||
private fun canUseTextFuture(spanned: Spanned): Boolean {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
|
||||
// On old devices, it works correctly
|
||||
return true
|
||||
}
|
||||
|
||||
return charSequence
|
||||
.getSpans(0, charSequence.length, Any::class.java)
|
||||
return spanned
|
||||
.getSpans(0, spanned.length, Any::class.java)
|
||||
.all { it !is StrikethroughSpan && it !is UnderlineSpan && it !is MetricAffectingSpan }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue