minor comment change / cleanup

This commit is contained in:
Connor Tumbleson 2013-02-03 11:45:47 -06:00
parent fcc3144904
commit f504ceca43
2 changed files with 4 additions and 6 deletions

View File

@ -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"));

View File

@ -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);