File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
java/com/google/firebase/quickstart/ai/feature/text Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323 <activity
2424 android : name =" .MainActivity"
2525 android : exported =" true"
26- android : label = " @string/app_name "
26+
2727 android : theme =" @style/Theme.FirebaseAIServices" >
2828 <intent-filter >
2929 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import android.annotation.SuppressLint
44import android.content.Intent
55import android.graphics.Bitmap
66import android.net.Uri
7+ import androidx.core.net.toUri
78import android.provider.OpenableColumns
89import android.text.format.Formatter
910import android.webkit.WebResourceRequest
@@ -374,7 +375,7 @@ fun SourceLinkView(
374375 ClickableText (text = annotatedString, onClick = { offset ->
375376 annotatedString.getStringAnnotations(tag = " URL" , start = offset, end = offset)
376377 .firstOrNull()?.let { annotation ->
377- context.startActivity(Intent (Intent .ACTION_VIEW , Uri .parse( annotation.item)))
378+ context.startActivity(Intent (Intent .ACTION_VIEW , annotation.item.toUri( )))
378379 }
379380 })
380381 }
You can’t perform that action at this time.
0 commit comments