mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-18 06:37:35 +01:00
feat(amoled): remove in favour of theme
patch
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
5c33f402a6
commit
00323010ed
@ -1,9 +0,0 @@
|
|||||||
package app.revanced.patches.youtube.layout.amoled.annotations
|
|
||||||
|
|
||||||
import app.revanced.patcher.annotation.Compatibility
|
|
||||||
import app.revanced.patcher.annotation.Package
|
|
||||||
|
|
||||||
@Compatibility([Package("com.google.android.youtube")])
|
|
||||||
@Target(AnnotationTarget.CLASS)
|
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
|
||||||
internal annotation class AmoledCompatibility
|
|
@ -1,28 +0,0 @@
|
|||||||
package app.revanced.patches.youtube.layout.amoled.patch
|
|
||||||
|
|
||||||
import app.revanced.patcher.annotation.Description
|
|
||||||
import app.revanced.patcher.annotation.Name
|
|
||||||
import app.revanced.patcher.annotation.PatchDeprecated
|
|
||||||
import app.revanced.patcher.annotation.Version
|
|
||||||
import app.revanced.patcher.data.impl.ResourceData
|
|
||||||
import app.revanced.patcher.patch.PatchResult
|
|
||||||
import app.revanced.patcher.patch.annotations.DependsOn
|
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
|
||||||
import app.revanced.patcher.patch.impl.ResourcePatch
|
|
||||||
import app.revanced.patches.youtube.layout.amoled.annotations.AmoledCompatibility
|
|
||||||
import app.revanced.patches.youtube.layout.theme.patch.ThemePatch
|
|
||||||
import app.revanced.patches.youtube.misc.manifest.patch.FixLocaleConfigErrorPatch
|
|
||||||
|
|
||||||
@Patch
|
|
||||||
@DependsOn([FixLocaleConfigErrorPatch::class])
|
|
||||||
@Name("amoled")
|
|
||||||
@Description("Enables pure black theme.")
|
|
||||||
@AmoledCompatibility
|
|
||||||
@Version("0.0.1")
|
|
||||||
@PatchDeprecated("Theme patch already includes the Amoled theme.", ThemePatch::class)
|
|
||||||
class AmoledPatch : ResourcePatch() {
|
|
||||||
override fun execute(data: ResourceData): PatchResult {
|
|
||||||
ThemePatch.theme = ThemePatch.Themes.Amoled.name
|
|
||||||
return ThemePatch().execute(data)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user