New getBadgedIconForUser is available to all dogfood users and
droidfood users (LRW52G).
GSA will crash if system build is less than LRW38.
Change-Id: I8d6bf9d065fa79198fa63b110de37f84663ed940
Following method has been removed.
UserManager.getBadgedDrawableForUser(Drawable, UserHandle)
This will only work on builds after lrw38
Change-Id: I777a630dd123a9cf8d92cd096e150e90035b3531
This reverts commits 01453e855f.
and 242bbe1b72.
"Add content description to bagded icons."
"Remove reflection now we are building against L"
Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.
Adds support to show apps from current user and any managed profiles.
Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.
Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.
Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.
Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9