mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 06:37:34 +01:00
ResReferenceValue.toResXmlFormat(): adding plus sign for references to ResIdValue.
This commit is contained in:
parent
77957ae1ae
commit
921eae6b8d
@ -44,9 +44,15 @@ public class ResReferenceValue extends ResIntValue {
|
|||||||
return "@null";
|
return "@null";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResResSpec spec = getReferent();
|
||||||
|
boolean newId =
|
||||||
|
spec.hasDefaultResource() &&
|
||||||
|
spec.getDefaultResource().getValue() instanceof ResIdValue;
|
||||||
|
|
||||||
return
|
return
|
||||||
(mTheme ? '?' : '@') +
|
(mTheme ? '?' : '@') +
|
||||||
getReferent().getFullName(mPackage, mTheme);
|
(newId ? "+" : "") +
|
||||||
|
spec.getFullName(mPackage, mTheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResResSpec getReferent() throws AndrolibException {
|
public ResResSpec getReferent() throws AndrolibException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user