@@ -18,7 +18,7 @@ import com.swmansion.enriched.markdown.utils.common.FeatureFlags
1818import com.swmansion.enriched.markdown.utils.common.MarkdownSegmentRenderer
1919import com.swmansion.enriched.markdown.utils.common.RenderedSegment
2020import com.swmansion.enriched.markdown.utils.common.splitASTIntoSegments
21- import com.swmansion.enriched.markdown.utils.text.view.applyMarkdownSelectionColors
21+ import com.swmansion.enriched.markdown.utils.text.view.applySelectionColors
2222import com.swmansion.enriched.markdown.utils.text.view.emitLinkLongPressEvent
2323import com.swmansion.enriched.markdown.utils.text.view.emitLinkPressEvent
2424import com.swmansion.enriched.markdown.views.BlockSegmentView
@@ -55,8 +55,8 @@ class EnrichedMarkdown
5555 private var maxFontSizeMultiplier: Float = 0f
5656 private var allowTrailingMargin: Boolean = false
5757 private var selectable: Boolean = true
58- private var propSelectionColor : Int? = null
59- private var propSelectionHandleColor : Int? = null
58+ private var selectionColor : Int? = null
59+ private var selectionHandleColor : Int? = null
6060
6161 private var onLinkPressCallback: ((String ) -> Unit )? = null
6262 private var onLinkLongPressCallback: ((String ) -> Unit )? = null
@@ -131,19 +131,19 @@ class EnrichedMarkdown
131131 }
132132 }
133133
134- fun setSelectionColorFromProps (color : Int? ) {
135- propSelectionColor = color
134+ fun setSelectionColor (color : Int? ) {
135+ selectionColor = color
136136 applySelectionColorsToSegments()
137137 }
138138
139- fun setSelectionHandleColorFromProps (color : Int? ) {
140- propSelectionHandleColor = color
139+ fun setSelectionHandleColor (color : Int? ) {
140+ selectionHandleColor = color
141141 applySelectionColorsToSegments()
142142 }
143143
144144 private fun applySelectionColorsToSegments () {
145145 segmentViews.filterIsInstance<EnrichedMarkdownInternalText >().forEach {
146- it.applyMarkdownSelectionColors(propSelectionColor, propSelectionHandleColor )
146+ it.applySelectionColors(selectionColor, selectionHandleColor )
147147 }
148148 }
149149
@@ -254,7 +254,7 @@ class EnrichedMarkdown
254254 setContextMenuItems(contextMenuItemTexts, ::forwardContextMenuItemPress)
255255 }
256256
257- applyMarkdownSelectionColors(propSelectionColor, propSelectionHandleColor )
257+ applySelectionColors(selectionColor, selectionHandleColor )
258258 }
259259
260260 private fun createTableView (
0 commit comments