@@ -12,8 +12,8 @@ import android.view.View
1212import android.view.ViewTreeObserver
1313import android.widget.FrameLayout
1414import androidx.core.content.ContextCompat
15- import kotlinx.coroutines.CoroutineDispatcher
1615import kotlinx.coroutines.CoroutineScope
16+ import kotlinx.coroutines.Dispatchers
1717import kotlinx.coroutines.Job
1818import kotlinx.coroutines.launch
1919import kotlinx.coroutines.runBlocking
@@ -39,7 +39,6 @@ import kotlin.math.min
3939class PlaceholderManager (
4040 private val aztecText : AztecText ,
4141 private val container : FrameLayout ,
42- private val mainThreadDispatcher : CoroutineDispatcher ,
4342 private val htmlTag : String = DEFAULT_HTML_TAG
4443) : AztecContentChangeWatcher.AztecTextChangeObserver,
4544 IHtmlTagHandler ,
@@ -51,7 +50,7 @@ class PlaceholderManager(
5150 private val positionToId = mutableSetOf<Placeholder >()
5251 private val job = Job ()
5352 override val coroutineContext: CoroutineContext
54- get() = mainThreadDispatcher + job
53+ get() = Dispatchers . Main + job
5554
5655 init {
5756 aztecText.setOnVisibilityChangeListener(this )
0 commit comments