summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-09-07 15:45:57 -0700
committerAmith Yamasani <yamasani@google.com>2014-09-07 15:45:57 -0700
commitfdf169cbea5c59c6f74c25c6c529d8a19c6cb78c (patch)
treea39388b5dbe6066cb77842404384d9e40250fcfb /packages/SystemUI
parentb30c9920df9a8b5f1515e26c65c5ce1d21e5a77a (diff)
downloadframeworks_base-fdf169cbea5c59c6f74c25c6c529d8a19c6cb78c.zip
frameworks_base-fdf169cbea5c59c6f74c25c6c529d8a19c6cb78c.tar.gz
frameworks_base-fdf169cbea5c59c6f74c25c6c529d8a19c6cb78c.tar.bz2
Use correct API for badging
Bug: 17414778 Change-Id: I7c0321d9435b0787a90cd62be80862069ba2d790
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java3
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
index b7434fd..34430d9 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
@@ -203,8 +203,7 @@ public class RecentTasksLoader implements View.OnTouchListener {
Drawable icon = getFullResIcon(td.resolveInfo, pm);
if (td.userId != UserHandle.myUserId()) {
// Need to badge the icon
- icon = mContext.getPackageManager().getUserBadgedDrawableForDensity(icon,
- new UserHandle(td.userId), null, 0);
+ icon = mContext.getPackageManager().getUserBadgedIcon(icon, new UserHandle(td.userId));
}
if (DEBUG) Log.v(TAG, "Loaded bitmap for task "
+ td + ": " + thumbnail);
diff --git a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java
index 07a42bd..887cbac 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java
@@ -356,7 +356,7 @@ public class SystemServicesProxy {
*/
public Drawable getBadgedIcon(Drawable icon, int userId) {
if (userId != UserHandle.myUserId()) {
- icon = mPm.getUserBadgedDrawableForDensity(icon, new UserHandle(userId), null, 0);
+ icon = mPm.getUserBadgedIcon(icon, new UserHandle(userId));
}
return icon;
}