Fix setTextAppearance for styles with dots.

Bug: http://b.android.com/78842
Change-Id: I65923134b2d3812030e2b7dd8ab96363b0647c1f
This commit is contained in:
Deepanshu Gupta
2014-11-18 22:44:00 +00:00
parent 8657baa06d
commit 2c9fbdd29c

View File

@ -482,16 +482,7 @@ public final class BridgeContext extends Context {
// In some cases, style may not be a dynamic id, so we do a full search.
ResourceReference ref = resolveId(resid);
if (ref != null) {
if (ref.isFramework()) {
ref =
getRenderResources().getFrameworkResource(ResourceType.STYLE, ref.getName());
} else {
ref =
getRenderResources().getProjectResource(ResourceType.STYLE, ref.getName());
}
if (ref instanceof StyleResourceValue) {
style = ((StyleResourceValue) ref);
}
mRenderResources.getStyle(ref.getName(), ref.isFramework());
}
}