mirror of
https://github.com/revanced/smali.git
synced 2025-05-23 18:16:23 +02:00
Use reference type from wrapped instruction in BaseRewrittenReferenceInstruction
Otherwise, the reference won't be rewritten correctly if the overriding class overrides getReferenceType to return a different type.
This commit is contained in:
parent
49f7e26507
commit
5a900e22e0
@ -81,7 +81,7 @@ public class InstructionRewriter implements Rewriter<Instruction> {
|
||||
}
|
||||
|
||||
@Override @Nonnull public Reference getReference() {
|
||||
switch (getReferenceType()) {
|
||||
switch (instruction.getReferenceType()) {
|
||||
case ReferenceType.TYPE:
|
||||
return RewriterUtils.rewriteTypeReference(rewriters.getTypeRewriter(),
|
||||
(TypeReference)instruction.getReference());
|
||||
|
Loading…
x
Reference in New Issue
Block a user