mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Properly handle style with dot in its name and without a parent style.
This commit is contained in:
parent
09a978e015
commit
38de56697a
@ -47,7 +47,9 @@ public class ResStyleValue extends ResBagValue implements
|
||||
serializer.attribute(null, "name", res.getResSpec().getName());
|
||||
if (!mParent.isNull()) {
|
||||
serializer.attribute(null, "parent", mParent.encodeAsResXmlAttr());
|
||||
}
|
||||
} else if (res.getResSpec().getName().indexOf('.') != -1) {
|
||||
serializer.attribute(null, "parent", "");
|
||||
}
|
||||
for (int i = 0; i < mItems.length; i++) {
|
||||
ResResSpec spec = mItems[i].m1.getReferent();
|
||||
|
||||
|
@ -7,4 +7,5 @@
|
||||
<style name="TextAppearance.EditEvent_Button" parent="@style/TextAppearance.EditEvent_Label">
|
||||
<item name="android:textColor">#ff777777</item>
|
||||
</style>
|
||||
<style name="Foo.Bar" parent=""/>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user