From c302148e89b3fd4ce2d0b9254eebc6ae7a9b26e1 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 13 Dec 2021 18:21:27 +0100 Subject: [PATCH] Rename --- .../src/main/java/im/vector/app/features/html/SpanUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/html/SpanUtils.kt b/vector/src/main/java/im/vector/app/features/html/SpanUtils.kt index 804e245596..175e595b37 100644 --- a/vector/src/main/java/im/vector/app/features/html/SpanUtils.kt +++ b/vector/src/main/java/im/vector/app/features/html/SpanUtils.kt @@ -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 } }