Update Settings due to API changes.

bug:17390424

Change-Id: I25dfa40cc5109260d48dbe5f33274b162912d059
This commit is contained in:
Svetoslav
2014-09-04 16:51:43 -07:00
parent 0535ed559e
commit 39f82a7c98
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 = mUm.getBadgedDrawableForUser(
authContext.getResources().getDrawable(desc.iconId), mUserHandle);
icon = mContext.getPackageManager().getUserBadgedDrawableForDensity(
authContext.getResources().getDrawable(desc.iconId), mUserHandle, null, 0);
synchronized (mAccTypeIconCache) {
mAccTypeIconCache.put(accountType, icon);
}