OSDN Git Service

Not using resource ids for EXTRA_INITIAL_INTENTS inside a managed profile.
authorNicolas Prevot <nprevot@google.com>
Fri, 10 Oct 2014 15:22:38 +0000 (16:22 +0100)
committerNicolas Prevot <nprevot@google.com>
Fri, 10 Oct 2014 15:40:08 +0000 (16:40 +0100)
commit1a815921694ca2b3ad4dbb85bf82d85e831bc84e
tree35cd73392d28326a22a29afa433316a2499ac617
parente78aa53123df02a021cf20f2d19af8d07e890058
Not using resource ids for EXTRA_INITIAL_INTENTS inside a managed profile.

Inside ResolverActivity: when getting the ResolveInfo for EXTRA_INITIAL_INTENTS:
The ResolveInfo is created directly inside ResolverActivity, not by PackageManagerService.
So, noResourceId had not been set to true for this ResolveInfo.
So setting it inside ResolverActivity.

This is needed since inside a managed profile, the icons are not associated with resource ids.

BUG:17577733
Change-Id: Ic4f0439128f95482167103b783344e2baa0aed52
core/java/com/android/internal/app/ResolverActivity.java