mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 06:34:25 +02:00
refactor: adjust line to fit 120 length line endings in /value (#3338)
This commit is contained in:
parent
f3936cbd22
commit
aea1d68dbc
@ -26,8 +26,7 @@ import org.xmlpull.v1.XmlSerializer;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class ResAttr extends ResBagValue implements ResValuesXmlSerializable {
|
public class ResAttr extends ResBagValue implements ResValuesXmlSerializable {
|
||||||
ResAttr(ResReferenceValue parentVal, int type, Integer min, Integer max,
|
ResAttr(ResReferenceValue parentVal, int type, Integer min, Integer max, Boolean l10n) {
|
||||||
Boolean l10n) {
|
|
||||||
super(parentVal);
|
super(parentVal);
|
||||||
mType = type;
|
mType = type;
|
||||||
mMin = min;
|
mMin = min;
|
||||||
|
@ -36,18 +36,15 @@ public class ResBagValue extends ResValue implements ResValuesXmlSerializable {
|
|||||||
ResResource res) throws IOException, AndrolibException {
|
ResResource res) throws IOException, AndrolibException {
|
||||||
String type = res.getResSpec().getType().getName();
|
String type = res.getResSpec().getType().getName();
|
||||||
if ("style".equals(type)) {
|
if ("style".equals(type)) {
|
||||||
new ResStyleValue(mParent, new Duo[0], null)
|
new ResStyleValue(mParent, new Duo[0], null).serializeToResValuesXml(serializer, res);
|
||||||
.serializeToResValuesXml(serializer, res);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ("array".equals(type)) {
|
if ("array".equals(type)) {
|
||||||
new ResArrayValue(mParent, new Duo[0]).serializeToResValuesXml(
|
new ResArrayValue(mParent, new Duo[0]).serializeToResValuesXml(serializer, res);
|
||||||
serializer, res);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ("plurals".equals(type)) {
|
if ("plurals".equals(type)) {
|
||||||
new ResPluralsValue(mParent, new Duo[0]).serializeToResValuesXml(
|
new ResPluralsValue(mParent, new Duo[0]).serializeToResValuesXml(serializer, res);
|
||||||
serializer, res);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,10 +25,8 @@ import org.xmlpull.v1.XmlSerializer;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class ResPluralsValue extends ResBagValue implements
|
public class ResPluralsValue extends ResBagValue implements ResValuesXmlSerializable {
|
||||||
ResValuesXmlSerializable {
|
ResPluralsValue(ResReferenceValue parent, Duo<Integer, ResScalarValue>[] items) {
|
||||||
ResPluralsValue(ResReferenceValue parent,
|
|
||||||
Duo<Integer, ResScalarValue>[] items) {
|
|
||||||
super(parent);
|
super(parent);
|
||||||
|
|
||||||
mItems = new ResScalarValue[6];
|
mItems = new ResScalarValue[6];
|
||||||
|
@ -25,7 +25,6 @@ import java.io.IOException;
|
|||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
public class ResStringValue extends ResScalarValue {
|
public class ResStringValue extends ResScalarValue {
|
||||||
|
|
||||||
public ResStringValue(String value, int rawValue) {
|
public ResStringValue(String value, int rawValue) {
|
||||||
this(value, rawValue, "string");
|
this(value, rawValue, "string");
|
||||||
}
|
}
|
||||||
|
@ -26,10 +26,8 @@ import org.xmlpull.v1.XmlSerializer;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
public class ResStyleValue extends ResBagValue implements
|
public class ResStyleValue extends ResBagValue implements ResValuesXmlSerializable {
|
||||||
ResValuesXmlSerializable {
|
ResStyleValue(ResReferenceValue parent, Duo<Integer, ResScalarValue>[] items, ResValueFactory factory) {
|
||||||
ResStyleValue(ResReferenceValue parent,
|
|
||||||
Duo<Integer, ResScalarValue>[] items, ResValueFactory factory) {
|
|
||||||
super(parent);
|
super(parent);
|
||||||
|
|
||||||
mItems = new Duo[items.length];
|
mItems = new Duo[items.length];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user