Use correct API for badging

Bug: 17414778
Change-Id: Ieb9890751c3071088b9f5aab48053e767f78bfe5
This commit is contained in:
Amith Yamasani
2014-09-07 15:38:09 -07:00
parent b5cc01342e
commit 30c50b15d0
4 changed files with 8 additions and 9 deletions

View File

@@ -104,8 +104,8 @@ final public class AuthenticatorHelper extends BroadcastReceiver {
AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType);
Context authContext = context.createPackageContextAsUser(desc.packageName, 0,
mUserHandle);
icon = mContext.getPackageManager().getUserBadgedDrawableForDensity(
authContext.getResources().getDrawable(desc.iconId), mUserHandle, null, 0);
icon = mContext.getPackageManager().getUserBadgedIcon(
authContext.getResources().getDrawable(desc.iconId), mUserHandle);
synchronized (mAccTypeIconCache) {
mAccTypeIconCache.put(accountType, icon);
}