Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f02a8d9f authored by Joe Fernandez's avatar Joe Fernandez Committed by Android Git Automerger
Browse files

am 1a9bf5c1: Merge "docs: training intent doc error update" into lmp-docs

* commit '1a9bf5c1':
  docs: training intent doc error update
parents 3d5535cf 1a9bf5c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -153,7 +153,8 @@ java.util.List} is not empty, you can safely use the intent. For example:</p>

<pre>
PackageManager packageManager = {@link android.content.Context#getPackageManager()};
List&lt;ResolveInfo> activities = packageManager.queryIntentActivities(intent, 0);
List<ResolveInfo> activities = packageManager.queryIntentActivities(intent,
        PackageManager.MATCH_DEFAULT_ONLY);
boolean isIntentSafe = activities.size() > 0;
</pre>