summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-30 09:42:21 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-11-30 09:42:21 +0000
commit867a473ff0719098e7e4ca00583b561ad35c9833 (patch)
treeeef3d1cf8eba7b7576d0a414201ce4d74c53af77
parentbbe27b34c5d8f0a2662453281faffd9578949281 (diff)
parentc70f00ec748f9c1e5dbb4060e4696ce3a2187f72 (diff)
downloadlibtextclassifier-android13-mainline-extservices-release.tar.gz
Snap for 9350704 from c70f00ec748f9c1e5dbb4060e4696ce3a2187f72 to mainline-extservices-releaseaml_ext_331814220aml_ext_331412000android13-mainline-extservices-release
Change-Id: Ia249cf52e3dbfd8c6a62ecbdb4ad4d216149142f
-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