summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-10 00:56:21 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-10 00:56:21 +0000
commit43d1d1b035ee2e4c08541b9eae1be45b9d89f017 (patch)
treeeef3d1cf8eba7b7576d0a414201ce4d74c53af77
parent421f604ea64eb312d1890af9483112c849a88260 (diff)
parentc70f00ec748f9c1e5dbb4060e4696ce3a2187f72 (diff)
downloadlibtextclassifier-android13-mainline-conscrypt-release.tar.gz
Snap for 9275205 from c70f00ec748f9c1e5dbb4060e4696ce3a2187f72 to mainline-conscrypt-releaseaml_con_331413000aml_con_331411000aml_con_331312000android13-mainline-conscrypt-release
Change-Id: I5f1c7ad408494ec44c40179184f46ef5717327a2
-rw-r--r--java/src/com/android/textclassifier/common/intent/LabeledIntent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/textclassifier/common/intent/LabeledIntent.java b/java/src/com/android/textclassifier/common/intent/LabeledIntent.java
index 5c420ad..abc879d 100644
--- a/java/src/com/android/textclassifier/common/intent/LabeledIntent.java
+++ b/java/src/com/android/textclassifier/common/intent/LabeledIntent.java
@@ -92,7 +92,7 @@ public final class LabeledIntent {
@Nullable
public Result resolve(Context context, @Nullable TitleChooser titleChooser) {
final PackageManager pm = context.getPackageManager();
- final ResolveInfo resolveInfo = pm.resolveActivity(intent, 0);
+ final ResolveInfo resolveInfo = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
if (resolveInfo == null || resolveInfo.activityInfo == null) {
// Failed to resolve the intent. It could be because there are no apps to handle