forked from upstream-mirrors/quik
Fix incorrect handling of shared text with commas
This commit is contained in:
@@ -67,8 +67,7 @@ class ComposeActivityModule {
|
|||||||
?: activity.intent.extras?.getString("sms_body")
|
?: activity.intent.extras?.getString("sms_body")
|
||||||
?: activity.intent?.decodedDataString()
|
?: activity.intent?.decodedDataString()
|
||||||
?.substringAfter('?') // Query string
|
?.substringAfter('?') // Query string
|
||||||
?.split(',')
|
?.takeIf { it.startsWith("body") }
|
||||||
?.firstOrNull { param -> param.startsWith("body") }
|
|
||||||
?.substringAfter('=')
|
?.substringAfter('=')
|
||||||
?: "")
|
?: "")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user