Skip to content

Commit 46a82a3

Browse files
committed
Resolve nullable uri path error
Uri's path has been converted to null after API 28.
1 parent c6e555b commit 46a82a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
19931993
plugin.itemToHtml(itemToPaste, acc ?: selectedText?.takeIf { it.isNotBlank() }) ?: acc
19941994
} ?: when (itemToPaste) {
19951995
is IClipboardPastePlugin.PastedItem.HtmlText -> itemToPaste.text
1996-
is IClipboardPastePlugin.PastedItem.Url -> itemToPaste.uri.path
1996+
is IClipboardPastePlugin.PastedItem.Url -> itemToPaste.uri.path.toString()
19971997
is IClipboardPastePlugin.PastedItem.PastedIntent -> itemToPaste.intent.toString()
19981998
}
19991999

0 commit comments

Comments
 (0)