Update Settings due to API changes.

bug:17390424

Change-Id: I25dfa40cc5109260d48dbe5f33274b162912d059
This commit is contained in:
Svetoslav
2014-09-04 16:51:43 -07:00
parent 0535ed559e
commit 39f82a7c98
4 changed files with 8 additions and 9 deletions

View File

@@ -212,7 +212,8 @@ public class RecentLocationApps {
final UserHandle userHandle = new UserHandle(userId);
Drawable appIcon = mPackageManager.getApplicationIcon(appInfo);
Drawable icon = um.getBadgedDrawableForUser(appIcon, userHandle);
Drawable icon = mPackageManager.getUserBadgedDrawableForDensity(appIcon, userHandle,
null, 0);
CharSequence appLabel = mPackageManager.getApplicationLabel(appInfo);
CharSequence badgedAppLabel = um.getBadgedLabelForUser(appLabel.toString(), userHandle);
preference = createRecentLocationEntry(icon,