Skip to content

Commit 26b3129

Browse files
generatedunixname537391475639613facebook-github-bot
authored andcommitted
fbandroid/libraries/fresco/vito/tools/liveeditor/src/main/java/com/facebook/fresco/vito/tools/liveeditor/ImageSourceUiUtil.kt
Differential Revision: D82292038 fbshipit-source-id: 5d6392762722570a4bcd76d84cac0821aec3468e
1 parent 9d8173d commit 26b3129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vito/tools/liveeditor/src/main/java/com/facebook/fresco/vito/tools/liveeditor/ImageSourceUiUtil.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ class ImageSourceUiUtil(private val context: Context) {
4343
}
4444

4545
val items =
46-
source.map {
47-
val spannable = SpannableString("${it.first} \n${it.second}")
46+
source.map { pair ->
47+
val spannable = SpannableString("${pair.first} \n${pair.second}")
4848
spannable.apply {
4949
setSpan(
5050
StyleSpan(Typeface.BOLD),
5151
0,
52-
it.first.length,
52+
pair.first.length,
5353
Spannable.SPAN_INCLUSIVE_INCLUSIVE,
5454
)
5555
setSpan(
5656
StyleSpan(Typeface.ITALIC),
57-
it.first.length,
57+
pair.first.length,
5858
spannable.length,
5959
Spannable.SPAN_INCLUSIVE_INCLUSIVE,
6060
)

0 commit comments

Comments
 (0)