updating gitignore for compatibility w/ Eclipse & added fix for new MIUI

This commit is contained in:
Connor Tumbleson 2012-11-01 14:23:19 -05:00
parent f765060cb5
commit 58ec5e1892
3 changed files with 15 additions and 2 deletions

4
.gitignore vendored
View File

@ -22,3 +22,7 @@ build*
*.kate-swp
*~
*.project
*.classpath
*.settings
*.setting
bin/

View File

@ -102,7 +102,7 @@ public class ResResSpec {
}
public ResType getType() {
return mType;
return getmType();
}
public void addResource(ResResource res)
@ -120,6 +120,10 @@ public class ResResSpec {
@Override
public String toString() {
return mId.toString() + " " + mType.toString() + "/" + mName;
return mId.toString() + " " + getmType().toString() + "/" + mName;
}
public ResType getmType() {
return mType;
}
}

View File

@ -49,6 +49,11 @@ public class ResStyleValue extends ResBagValue implements ResValuesXmlSerializab
}
for (int i = 0; i < mItems.length; i++) {
ResResSpec spec = mItems[i].m1.getReferent();
// hacky-fix remove bad ReferenceVars
if (spec.getDefaultResource().getValue().toString().contains("ResReferenceValue@")) {
continue;
}
ResAttr attr = (ResAttr) spec.getDefaultResource().getValue();
String value = attr.convertToResXmlFormat(mItems[i].m2);