Skip to content

Commit

Permalink
fix:(youtube/return-youtube-dislike): always modify span content of t…
Browse files Browse the repository at this point in the history
…he like button (#1448)
  • Loading branch information
LisoUseInAIKyrios committed Jan 8, 2023
1 parent 66cf6e9 commit 6abb732
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6abb732

Please sign in to comment.