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

Commit 367bfb3b authored by Rich Slogar's avatar Rich Slogar
Browse files

docs: training intent doc error update

b/18386294

Change-Id: Id0fb07e567e0f698e786ac57a19c60895f4d6fc1
parent 05defb99
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>