Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c48ab82 authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android Git Automerger
Browse files

am ccf7b2aa: am 5af7324a: Fix style resolution for styles with \'.\' [DO NOT MERGE]

* commit 'ccf7b2aa':
  Fix style resolution for styles with '.' [DO NOT MERGE]
parents 8782a120 ccf7b2aa
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -609,19 +609,16 @@ public final class BridgeContext extends Context {
            }

            if (value != null) {
                if ((value.getFirst() == ResourceType.STYLE)
                        || (value.getFirst() == ResourceType.ATTR)) {
                    // look for the style in the current theme, and its parent:
                    ResourceValue item = mRenderResources.findItemInTheme(value.getSecond(),
                if (value.getFirst() == ResourceType.STYLE) {
                    // look for the style in all resources:
                    StyleResourceValue item = mRenderResources.getStyle(value.getSecond(),
                            isFrameworkRes);
                    if (item != null) {
                        if (item instanceof StyleResourceValue) {
                        if (defaultPropMap != null) {
                            defaultPropMap.put("style", item.getName());
                        }

                            defStyleValues = (StyleResourceValue)item;
                        }
                        defStyleValues = item;
                    } else {
                        Bridge.getLog().error(null,
                                String.format(