forked from ReVanced/revanced-patches-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(youtube/video-speed): change custom video speeds inside app sett…
…ings (ReVanced#2114)
- Loading branch information
1 parent
c6c4b37
commit a33e7de
Showing
5 changed files
with
54 additions
and
112 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
src/main/kotlin/app/revanced/patches/shared/settings/preference/impl/InputType.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,6 +1,8 @@ | ||
package app.revanced.patches.shared.settings.preference.impl | ||
|
||
enum class InputType(val type: String) { | ||
STRING("text"), | ||
STRING("text"), // TODO: rename to "TEXT" | ||
TEXT_CAP_CHARACTERS("textCapCharacters"), | ||
TEXT_MULTI_LINE("textMultiLine"), | ||
NUMBER("number"), | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/kotlin/app/revanced/patches/youtube/misc/video/speed/VideoSpeeds.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,24 @@ | ||
package app.revanced.patches.youtube.misc.video.speed | ||
|
||
import app.revanced.patcher.annotation.Description | ||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.PatchResult | ||
import app.revanced.patcher.patch.PatchResultSuccess | ||
import app.revanced.patcher.patch.annotations.DependsOn | ||
import app.revanced.patcher.patch.annotations.Patch | ||
import app.revanced.patches.youtube.misc.video.speed.custom.patch.CustomVideoSpeedPatch | ||
import app.revanced.patches.youtube.misc.video.speed.remember.patch.RememberPlaybackSpeedPatch | ||
|
||
@Patch | ||
@Name("video-speed") | ||
@Description("Adds custom video speeds and ability to remember the playback speed you chose in the video playback speed flyout.") | ||
@DependsOn([CustomVideoSpeedPatch::class, RememberPlaybackSpeedPatch::class]) | ||
@Version("0.0.1") | ||
class VideoSpeeds : BytecodePatch() { | ||
override fun execute(context: BytecodeContext): PatchResult { | ||
return PatchResultSuccess() // All sub patches succeeded. | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
...vanced/patches/youtube/misc/video/speed/custom/fingerprints/VideoSpeedPatchFingerprint.kt
This file was deleted.
Oops, something went wrong.
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