Use non deprecated method for creating ColorStateList

Change-Id: I9fce928276c8a2af55eb0615a4895abb6a973be5
This commit is contained in:
Deepanshu Gupta
2015-05-20 16:49:42 -07:00
parent 719c9b93f1
commit 10dff451f3

View File

@@ -320,7 +320,8 @@ public final class BridgeTypedArray extends TypedArray {
BridgeXmlBlockParser blockParser = new BridgeXmlBlockParser(
parser, mContext, resValue.isFramework());
try {
return ColorStateList.createFromXml(mContext.getResources(), blockParser);
return ColorStateList.createFromXml(mContext.getResources(), blockParser,
mContext.getTheme());
} finally {
blockParser.ensurePopped();
}