MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setText

Method setText

valdi/src/java/com/snap/valdi/views/ValdiEditText.kt:356–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355 if (enableRelayout) {
356 // Typing never requests layout on this MATCH_PARENT child, so its measure cache would keep the old size.
357 requestLayout()
358 }
359 ViewUtils.invalidateLayout(owner)
360 }
361 }
362
363 override fun onSelectionChanged(selStart: Int, selEnd: Int) {
364 super.onSelectionChanged(selStart, selEnd)
365 val owner = owner ?: return
366 ValdiTextSelection.notifySelectionChanged(owner, selStart, selEnd)
367 ValdiTextSelection.callSelectionChangeCallback(onSelectionChangeFunction, text ?: "", selStart, selEnd, userEditCount)

Callers 5

TextLayerClass.cppFile · 0.45
setAttributedTextMethod · 0.45
setTextAccessibilityMethod · 0.45
setTextAccessibilityMethod · 0.45
resetValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected