Skip to content

Commit 904fcd9

Browse files
committed
additional lint fixes
1 parent ea0577a commit 904fcd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

firebase-ai/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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" />

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/text/ChatScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
44
import android.content.Intent
55
import android.graphics.Bitmap
66
import android.net.Uri
7+
import androidx.core.net.toUri
78
import android.provider.OpenableColumns
89
import android.text.format.Formatter
910
import 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
}

0 commit comments

Comments
 (0)