mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 15:44:30 +02:00
baksmali: Only perform resource ID lookup once
This commit is contained in:
parent
9cf653f093
commit
20b7bbf63e
@ -346,9 +346,10 @@ public class InstructionMethodItem<T extends Instruction> extends MethodItem {
|
|||||||
|
|
||||||
protected void writeResourceId(IndentingWriter writer, int val) throws IOException {
|
protected void writeResourceId(IndentingWriter writer, int val) throws IOException {
|
||||||
Map<Integer,String> resourceIds = methodDef.classDef.options.resourceIds;
|
Map<Integer,String> resourceIds = methodDef.classDef.options.resourceIds;
|
||||||
if (resourceIds.containsKey(Integer.valueOf(val))) {
|
String resource = resourceIds.get(Integer.valueOf(val));
|
||||||
|
if (resource != null) {
|
||||||
writer.write(" # ");
|
writer.write(" # ");
|
||||||
writer.write(resourceIds.get(Integer.valueOf(val)));
|
writer.write(resource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user