+ResResource.replace().

This commit is contained in:
Ryszard Wiśniewski 2010-09-01 22:30:55 +02:00
parent 4899344817
commit 58b6616798

View File

@ -17,6 +17,7 @@
package brut.androlib.res.data;
import brut.androlib.AndrolibException;
import brut.androlib.res.data.value.ResValue;
/**
@ -51,6 +52,12 @@ public class ResResource {
return mValue;
}
public void replace(ResValue value) throws AndrolibException {
ResResource res = new ResResource(mConfig, mResSpec, value);
mConfig.addResource(res, true);
mResSpec.addResource(res, true);
}
@Override
public String toString() {
return getFilePath();