Use correct API for badging
Bug: 17414778 Change-Id: Ieb9890751c3071088b9f5aab48053e767f78bfe5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user