Travis Griggs
09/19/2022, 10:21 PMephemient
09/20/2022, 2:20 AMephemient
09/20/2022, 2:26 AMTravis Griggs
09/20/2022, 4:15 PMTravis Griggs
09/20/2022, 7:34 PM{ url ->
var parsed = Uri.parse(url)
if (parsed.scheme == null) {
parsed = parsed.buildUpon().scheme("https").build()
}
startActivity(Intent(Intent.ACTION_VIEW, parsed))
}
So that it would follow "assumed scheme" links like the iOS TextView does. Is there a more elegant way to do that?ephemient
09/20/2022, 7:37 PMval url = match.value
var uri = Uri.parse(url)
if (uri.scheme == null) uri = uri.buildUpon().scheme("https").build()
withAnnotation(tag = "url", annotation = uri.toString()) {
ephemient
09/20/2022, 7:40 PMUli Bubenheimer
11/02/2022, 10:48 AMUli Bubenheimer
11/02/2022, 10:51 AM