summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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