Apply suggestion from @oSumAtrIX

This commit is contained in:
oSumAtrIX 2026-03-20 20:10:41 +01:00 committed by GitHub
parent 541fbeeae8
commit 02b459200e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,10 +14,9 @@ val restoreOldEmojiDrawerPatch = bytecodePatch(
compatibleWith("com.facebook.orca")
apply {
val isRedesignedDrawerEnabledMethodReference = renderRedesignedDrawerMethodMatch.let {
it.method.getInstruction(it[0]).methodReference!!
val isRedesignedDrawerEnabledMethod = with(renderRedesignedDrawerMethodMatch) {
firstMethod(it.method.getInstruction(it[0]).methodReference!!)
}
val isRedesignedDrawerEnabledMethod = firstMethod(isRedesignedDrawerEnabledMethodReference)
isRedesignedDrawerEnabledMethod.returnEarly(false)
}
}