Skip to content

Commit

Permalink
fix(youtube/custom-video-speed): add missing class for video-speeds
Browse files Browse the repository at this point in the history
… patch (ReVanced#2137)

This has been caused by a recent merge conflict resolution.

Co-authored-by: oSumAtrIX <[email protected]>
  • Loading branch information
johnconner122 and oSumAtrIX authored May 13, 2023
1 parent 6f19600 commit 758ef42
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package app.revanced.patches.youtube.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.video.speed.custom.patch.CustomVideoSpeedPatch
import app.revanced.patches.youtube.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 patches this patch depends on succeed.

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CustomVideoSpeedPatch : BytecodePatch(
) {

override fun execute(context: BytecodeContext): PatchResult {
SettingsPatch.PreferenceScreen.MISC.addPreferences(
SettingsPatch.PreferenceScreen.VIDEO.addPreferences(
TextPreference(
key = "revanced_custom_video_speeds",
title = StringResource(
Expand Down

0 comments on commit 758ef42

Please sign in to comment.