refactor(Spotify): Improve protobuf array list mutability patch (#5053)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Nuckyz
2025-05-28 11:55:25 +02:00
committed by GitHub
co-authored by oSumAtrIX
parent 3ba791ac7d
commit f8343ae9f6
@@ -65,8 +65,15 @@ internal val protobufListsFingerprint = fingerprint {
custom { method, _ -> method.name == "emptyProtobufList" }
}
internal val protobufListRemoveFingerprint = fingerprint {
custom { method, _ -> method.name == "remove" }
internal val abstractProtobufListEnsureIsMutableFingerprint = fingerprint {
accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL)
parameters()
returns("V")
custom { method, _ ->
method.indexOfFirstInstruction {
getReference<TypeReference>()?.type == "Ljava/lang/UnsupportedOperationException;"
} >= 0
}
}
internal val homeSectionFingerprint = fingerprint {