mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
cleanup
This commit is contained in:
@ -11,9 +11,8 @@ import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.shared.annotation.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.patch.SwipeGestureBrightnessInHDRPatch
|
||||
import app.revanced.patches.youtube.swipe.swipecontrols.bytecode.patch.SwipeControlsBytecodePatch
|
||||
import app.revanced.util.resources.ResourceHelper
|
||||
import app.revanced.patches.youtube.swipe.swipecontrolshdr.patch.SwipeControlsHDRPatch
|
||||
import app.revanced.util.resources.ResourceUtils
|
||||
import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
|
||||
@ -24,7 +23,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
[
|
||||
SettingsPatch::class,
|
||||
SwipeControlsBytecodePatch::class,
|
||||
SwipeGestureBrightnessInHDRPatch::class
|
||||
SwipeControlsHDRPatch::class
|
||||
]
|
||||
)
|
||||
@YouTubeCompatibility
|
||||
@ -35,17 +34,14 @@ class SwipeControlsPatch : ResourcePatch {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
ResourceHelper.addSettings(
|
||||
context,
|
||||
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
|
||||
"PREFERENCE: SWIPE_SETTINGS",
|
||||
"SETTINGS: SWIPE_CONTROLS"
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: SWIPE_SETTINGS",
|
||||
"SETTINGS: SWIPE_CONTROLS"
|
||||
)
|
||||
)
|
||||
|
||||
ResourceHelper.patchSuccess(
|
||||
context,
|
||||
"swipe-controls"
|
||||
)
|
||||
SettingsPatch.updatePatchStatus("swipe-controls")
|
||||
|
||||
context.copyResources(
|
||||
"youtube/swipecontrols",
|
||||
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.fingerprints
|
||||
package app.revanced.patches.youtube.swipe.swipecontrolshdr.fingerprints
|
||||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.patch
|
||||
package app.revanced.patches.youtube.swipe.swipecontrolshdr.patch
|
||||
|
||||
import app.revanced.extensions.toErrorResult
|
||||
import app.revanced.patcher.annotation.Name
|
||||
@ -11,13 +11,13 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.shared.annotation.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.fingerprints.HDRVideoFingerprint
|
||||
import app.revanced.patches.youtube.swipe.swipecontrolshdr.fingerprints.HDRVideoFingerprint
|
||||
import app.revanced.util.integrations.Constants.SWIPE_PATH
|
||||
|
||||
@Name("enable-swipe-gesture-brightness-in-hdr-patch")
|
||||
@Name("swipe-controls-hdr")
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class SwipeGestureBrightnessInHDRPatch : BytecodePatch(
|
||||
class SwipeControlsHDRPatch : BytecodePatch(
|
||||
listOf(
|
||||
HDRVideoFingerprint
|
||||
)
|
Reference in New Issue
Block a user