mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 06:34:25 +02:00
minor comment change / cleanup
This commit is contained in:
parent
fcc3144904
commit
f504ceca43
@ -48,11 +48,10 @@ public class ResReferenceValue extends ResIntValue {
|
|||||||
spec.hasDefaultResource() &&
|
spec.hasDefaultResource() &&
|
||||||
spec.getDefaultResource().getValue() instanceof ResIdValue;
|
spec.getDefaultResource().getValue() instanceof ResIdValue;
|
||||||
|
|
||||||
/* generate the beginning to fix @android */
|
// generate the beginning to fix @android
|
||||||
String mStart = (mTheme ? '?' : '@') + (newId ? "+" : "");
|
String mStart = (mTheme ? '?' : '@') + (newId ? "+" : "");
|
||||||
// mStart = mStart.replace("@android", "@*android");
|
//mStart = mStart.replace("@android", "@*android");
|
||||||
|
|
||||||
/* now dump back */
|
|
||||||
return mStart +
|
return mStart +
|
||||||
spec.getFullName(mPackage,
|
spec.getFullName(mPackage,
|
||||||
mTheme && spec.getType().getName().equals("attr"));
|
mTheme && spec.getType().getName().equals("attr"));
|
||||||
|
@ -94,15 +94,14 @@ public abstract class ResScalarValue extends ResValue
|
|||||||
|
|
||||||
String body = encodeAsResXmlValue();
|
String body = encodeAsResXmlValue();
|
||||||
|
|
||||||
|
// check for resource reference
|
||||||
/* check for resource reference */
|
|
||||||
if (body.contains("@")){
|
if (body.contains("@")){
|
||||||
if(!res.getFilePath().contains("string")) {
|
if(!res.getFilePath().contains("string")) {
|
||||||
item = true;
|
item = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check for using attrib as node or item */
|
// check for using attrib as node or item
|
||||||
String tagName = item ? "item" : type;
|
String tagName = item ? "item" : type;
|
||||||
|
|
||||||
serializer.startTag(null, tagName);
|
serializer.startTag(null, tagName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user