android: replace new line in Uri before transforming it to URI (#4240)

This commit is contained in:
Stanislav Dmitrenko
2024-05-28 17:24:57 +07:00
committed by GitHub
parent 0ae9f5ebba
commit d79b4dfb5a

View File

@@ -17,6 +17,6 @@ val NotificationsMode.requiresIgnoringBattery
lateinit var APPLICATION_ID: String
fun Uri.toURI(): URI = URI(toString())
fun Uri.toURI(): URI = URI(toString().replace("\n", ""))
fun URI.toUri(): Uri = Uri.parse(toString())