diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-03-04 16:16:00 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-03-04 16:31:34 -0700 |
commit | d5896630f6a2f21da107031cab216dc93bdcd851 (patch) | |
tree | 4a0ea7c754d929a7e00cb521db9d83557f0683fd /cmds/am | |
parent | effcd935940e4d3c2acb2a2a8bc22d5bf6f9cc64 (diff) |
Move more PM calls to ParceledListSlice.
Since the data returned by these calls can grow unbounded based on
various GET flags, we need to switch 'em over.
Bug: 27391893
Change-Id: Ie849ca30dbaaa91158da4c83675657715629a0ee
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index fea6f0e18a32..e6c576825e67 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -577,7 +577,7 @@ public class Am extends BaseCommand { return; } List<ResolveInfo> activities = pm.queryIntentActivities(intent, mimeType, 0, - mUserId); + mUserId).getList(); if (activities == null || activities.size() <= 0) { System.err.println("Error: Intent does not match any activities: " + intent); |