forked from ReVanced/revanced-patches-template
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(YouTube Music/Player components): add settings `Disable miniplay…
…er gesture`, `Disable player gesture` inotia00/ReVanced_Extended#2097
- Loading branch information
Showing
4 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ced/patches/music/player/components/fingerprints/PlayerViewPagerConstructorFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package app.revanced.patches.music.player.components.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import app.revanced.patches.music.utils.resourceid.SharedResourceIdPatch.MiniPlayerViewPager | ||
import app.revanced.patches.music.utils.resourceid.SharedResourceIdPatch.PlayerViewPager | ||
import app.revanced.util.containsWideLiteralInstructionIndex | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
internal object PlayerViewPagerConstructorFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR, | ||
customFingerprint = { methodDef, _ -> | ||
methodDef.containsWideLiteralInstructionIndex(MiniPlayerViewPager) | ||
&& methodDef.containsWideLiteralInstructionIndex(PlayerViewPager) | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters