mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
+ResResource.replace().
This commit is contained in:
parent
4899344817
commit
58b6616798
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user