mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-10 10:39:22 +01:00
fix:(youtube/return-youtube-dislike): always modify span content of the like button (#1448)
This commit is contained in:
parent
66cf6e9b45
commit
6abb732be4
@ -59,7 +59,9 @@ class ReturnYouTubeDislikePatch : BytecodePatch(
|
||||
|
||||
val conversionContextParam = 5
|
||||
val textRefParam = createComponentMethod.parameters.size - 2
|
||||
val insertIndex = scanResult.stringsScanResult!!.matches.first().index - 2
|
||||
// insert index must be 0, otherwise UI does not updated correctly in some situations
|
||||
// such as switching from full screen or when using previous/next overlay buttons.
|
||||
val insertIndex = 0
|
||||
|
||||
createComponentMethod.addInstructions(
|
||||
insertIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user