mirror of
https://github.com/revanced/revanced-patches
synced 2024-09-03 21:15:26 +02:00
fix(youtube/theme): add missing theme condition check (#771)
This commit is contained in:
parent
1eb0c5ce0a
commit
c8803b9951
@ -29,12 +29,17 @@ class CommentsFilterBarPatch : BytecodePatch(
|
|||||||
|
|
||||||
method.addInstructions(
|
method.addInstructions(
|
||||||
patchIndex, """
|
patchIndex, """
|
||||||
|
invoke-static {}, Lapp/revanced/integrations/utils/ThemeHelper;->isDarkTheme()Z
|
||||||
|
move-result v2
|
||||||
|
if-nez v2, :comments_filter_white
|
||||||
const v1, -0x1
|
const v1, -0x1
|
||||||
if-ne v1, p1, :comments_filter_white
|
if-ne v1, p1, :comments_filter_white
|
||||||
|
const/4 p1, 0x0
|
||||||
|
:comments_filter_white
|
||||||
|
if-eqz v2, :comments_filter_dark
|
||||||
const v1, -0xdededf
|
const v1, -0xdededf
|
||||||
if-ne v1, p1, :comments_filter_dark
|
if-ne v1, p1, :comments_filter_dark
|
||||||
const/4 p1, 0x0
|
const/4 p1, 0x0
|
||||||
:comments_filter_white
|
|
||||||
""", listOf(ExternalLabel("comments_filter_dark", method.instruction(patchIndex)))
|
""", listOf(ExternalLabel("comments_filter_dark", method.instruction(patchIndex)))
|
||||||
)
|
)
|
||||||
return PatchResultSuccess()
|
return PatchResultSuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user