Merge "Fix LockIcon to use Context.getDrawable(int)"
This commit is contained in:
@@ -168,7 +168,7 @@ public class LockIcon extends KeyguardAffordanceView {
|
||||
int iconRes = isAnim ? getThemedAnimationResId(lockAnimIndex) : getIconForState(newState);
|
||||
|
||||
if (!mDrawableCache.contains(iconRes)) {
|
||||
mDrawableCache.put(iconRes, getResources().getDrawable(iconRes));
|
||||
mDrawableCache.put(iconRes, getContext().getDrawable(iconRes));
|
||||
}
|
||||
|
||||
return mDrawableCache.get(iconRes);
|
||||
|
||||
Reference in New Issue
Block a user