Revert "Revert "Use system-api lib to get badged, shadowed icons(2/n)""

This reverts commit 94b8055f1c.

Reason for revert: Revert this cl and fix broken test cases.

Change-Id: I61a190b4beba8db2fe2faab45e5dd6921dc681ec
Fix: 149112222
Fix: 149090275
Test: Run all Setting robo tests
This commit is contained in:
Tsung-Mao Fang
2020-02-10 05:45:33 +00:00
parent 1ab6dd7a71
commit b4fc67ea24
8 changed files with 54 additions and 26 deletions

View File

@@ -29,7 +29,6 @@ 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;
@@ -147,7 +146,7 @@ public class EntityHeaderController {
* accessibility purposes.
*/
public EntityHeaderController setIcon(ApplicationsState.AppEntry appEntry) {
mIcon = IconDrawableFactory.newInstance(mAppContext).getBadgedIcon(appEntry.info);
mIcon = Utils.getBadgedIcon(mAppContext, appEntry.info);
return this;
}