fix: Use custom comparison block for strings in anyOf
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@ internal val BytecodePatchContext.tabLayoutTextMethodMatch by composingFirstMeth
|
||||
parameterTypes("L")
|
||||
instructions(
|
||||
anyOf(
|
||||
"FEmusic_search"(), // 8.49 and lower.
|
||||
"FEsearch"() // 8.50+
|
||||
"FEmusic_search" { equals(it) }, // 8.49 and lower. Must use custom comparison block, otherwise string is added to stringsList for lookup
|
||||
"FEsearch" { equals(it) } // 8.50+
|
||||
),
|
||||
// Hide navigation label.
|
||||
ResourceType.ID("text1"),
|
||||
|
||||
+2
-2
@@ -60,9 +60,9 @@ internal fun ClassDef.getSeekMethod() = firstImmutableMethodDeclaratively {
|
||||
instructions(
|
||||
anyOf(
|
||||
// 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+
|
||||
"currentPositionMs."()
|
||||
"currentPositionMs." { equals(it) }
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user