diff options
author | Bill Peckham <bpeckham@google.com> | 2020-02-07 21:52:25 +0000 |
---|---|---|
committer | Bill Peckham <bpeckham@google.com> | 2020-02-07 21:52:25 +0000 |
commit | 94b8055f1c214190ba4878bcb11a624f5866f417 (patch) | |
tree | 7676a7f6e1a9a7a36ad36111b2136aeff614bf9f /src/com/android/settings/widget/EntityHeaderController.java | |
parent | dbecbe6f61692af58199f1fdf188aa9a8b60a1a5 (diff) |
Revert "Use system-api lib to get badged, shadowed icons(2/n)"
This reverts commit dbecbe6f61692af58199f1fdf188aa9a8b60a1a5.
Reason for revert: b/149112222
Change-Id: I11981b2daacf8b07177fe906d88de05ca40810c1
Diffstat (limited to 'src/com/android/settings/widget/EntityHeaderController.java')
-rw-r--r-- | src/com/android/settings/widget/EntityHeaderController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/widget/EntityHeaderController.java b/src/com/android/settings/widget/EntityHeaderController.java index 440882f14d..8e31290577 100644 --- a/src/com/android/settings/widget/EntityHeaderController.java +++ b/src/com/android/settings/widget/EntityHeaderController.java @@ -29,6 +29,7 @@ import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.UserHandle; import android.text.TextUtils; +import android.util.IconDrawableFactory; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -146,7 +147,7 @@ public class EntityHeaderController { * accessibility purposes. */ public EntityHeaderController setIcon(ApplicationsState.AppEntry appEntry) { - mIcon = Utils.getBadgedIcon(mAppContext, appEntry.info); + mIcon = IconDrawableFactory.newInstance(mAppContext).getBadgedIcon(appEntry.info); return this; } |