fix(youtube/custom-video-speed): add missing class for video-speeds
patch (#2137)
This has been caused by a recent merge conflict resolution. Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
6f196007c3
commit
758ef42f9c
|
@ -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.
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -34,7 +34,7 @@ class CustomVideoSpeedPatch : BytecodePatch(
|
||||||
) {
|
) {
|
||||||
|
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
override fun execute(context: BytecodeContext): PatchResult {
|
||||||
SettingsPatch.PreferenceScreen.MISC.addPreferences(
|
SettingsPatch.PreferenceScreen.VIDEO.addPreferences(
|
||||||
TextPreference(
|
TextPreference(
|
||||||
key = "revanced_custom_video_speeds",
|
key = "revanced_custom_video_speeds",
|
||||||
title = StringResource(
|
title = StringResource(
|
||||||
|
|
Loading…
Reference in a new issue