generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Swipe controls): Add option to enable/disable fullscreen swipe t…
…o next video (#4222)
- Loading branch information
1 parent
d6e389c
commit 119092f
Showing
5 changed files
with
47 additions
and
3 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
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
13 changes: 12 additions & 1 deletion
13
...es/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/Fingerprints.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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
package app.revanced.patches.youtube.interaction.swipecontrols | ||
|
||
import app.revanced.patcher.fingerprint | ||
import app.revanced.util.literal | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
internal val swipeControlsHostActivityFingerprint = fingerprint { | ||
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR) | ||
parameters() | ||
custom { method, _ -> | ||
method.definingClass == "Lapp/revanced/extension/youtube/swipecontrols/SwipeControlsHostActivity;" | ||
method.definingClass == EXTENSION_CLASS_DESCRIPTOR | ||
} | ||
} | ||
|
||
internal const val SWIPE_CHANGE_VIDEO_FEATURE_FLAG = 45631116L | ||
|
||
internal val swipeChangeVideoFingerprint = fingerprint { | ||
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR) | ||
parameters("L") | ||
literal { | ||
SWIPE_CHANGE_VIDEO_FEATURE_FLAG | ||
} | ||
} |
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