fix: Use custom comparison block for strings in anyOf
This commit is contained in:
parent
8125741d90
commit
56a087dbac
2 changed files with 4 additions and 4 deletions
|
|
@ -13,8 +13,8 @@ internal val BytecodePatchContext.tabLayoutTextMethodMatch by composingFirstMeth
|
||||||
parameterTypes("L")
|
parameterTypes("L")
|
||||||
instructions(
|
instructions(
|
||||||
anyOf(
|
anyOf(
|
||||||
"FEmusic_search"(), // 8.49 and lower.
|
"FEmusic_search" { equals(it) }, // 8.49 and lower. Must use custom comparison block, otherwise string is added to stringsList for lookup
|
||||||
"FEsearch"() // 8.50+
|
"FEsearch" { equals(it) } // 8.50+
|
||||||
),
|
),
|
||||||
// Hide navigation label.
|
// Hide navigation label.
|
||||||
ResourceType.ID("text1"),
|
ResourceType.ID("text1"),
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@ internal fun ClassDef.getSeekMethod() = firstImmutableMethodDeclaratively {
|
||||||
instructions(
|
instructions(
|
||||||
anyOf(
|
anyOf(
|
||||||
// 20.xx
|
// 20.xx
|
||||||
"Attempting to seek during an ad"(),
|
"Attempting to seek during an ad" { equals(it) }, // Must use custom comparison block, otherwise string is added to stringsList for lookup
|
||||||
// 21.02+
|
// 21.02+
|
||||||
"currentPositionMs."()
|
"currentPositionMs." { equals(it) }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue