Skip to content

Commit 6269d54

Browse files
committed
Remove wildcard import
1 parent 97e3544 commit 6269d54

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ import org.wordpress.aztec.handlers.PreformatHandler
7575
import org.wordpress.aztec.handlers.QuoteHandler
7676
import org.wordpress.aztec.plugins.IAztecPlugin
7777
import org.wordpress.aztec.plugins.IClipboardPastePlugin
78-
import org.wordpress.aztec.plugins.IClipboardPastePlugin.*
7978
import org.wordpress.aztec.plugins.IOnDrawPlugin
8079
import org.wordpress.aztec.plugins.IToolbarButton
8180
import org.wordpress.aztec.source.Format
@@ -1908,13 +1907,13 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
19081907
firstItem.text.isNotBlank() -> {
19091908
val textToPaste = if (asPlainText) clip.getItemAt(0).coerceToText(context).toString()
19101909
else clip.getItemAt(0).coerceToHtmlText(AztecParser(alignmentRendering, plugins))
1911-
PastedItem.HtmlText(textToPaste)
1910+
IClipboardPastePlugin.PastedItem.HtmlText(textToPaste)
19121911
}
19131912
firstItem.uri != null -> {
1914-
PastedItem.Url(firstItem.uri)
1913+
IClipboardPastePlugin.PastedItem.Url(firstItem.uri)
19151914
}
19161915
firstItem.intent != null -> {
1917-
PastedItem.PastedIntent(firstItem.intent)
1916+
IClipboardPastePlugin.PastedItem.PastedIntent(firstItem.intent)
19181917
}
19191918
else -> {
19201919
null
@@ -1926,9 +1925,9 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
19261925
.fold(null as? String?) { acc, plugin ->
19271926
plugin.itemToHtml(itemToPaste, acc ?: selectedText?.takeIf { it.isNotBlank() }) ?: acc
19281927
} ?: when (itemToPaste) {
1929-
is PastedItem.HtmlText -> itemToPaste.text
1930-
is PastedItem.Url -> itemToPaste.uri.path
1931-
is PastedItem.PastedIntent -> itemToPaste.intent.toString()
1928+
is IClipboardPastePlugin.PastedItem.HtmlText -> itemToPaste.text
1929+
is IClipboardPastePlugin.PastedItem.Url -> itemToPaste.uri.path
1930+
is IClipboardPastePlugin.PastedItem.PastedIntent -> itemToPaste.intent.toString()
19321931
}
19331932

19341933
val newHtml = oldHtml.replace(

0 commit comments

Comments
 (0)