mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-05 17:14:35 +02:00
feat(YouTube Music/Enable zen mode): add Enable zen mode in podcasts
settings
This commit is contained in:
parent
df01c0bf8c
commit
8f1b86191b
@ -14,6 +14,7 @@ import app.revanced.patches.music.utils.integrations.Constants.PLAYER
|
||||
import app.revanced.patches.music.utils.resourceid.SharedResourceIdPatch
|
||||
import app.revanced.patches.music.utils.settings.CategoryType
|
||||
import app.revanced.patches.music.utils.settings.SettingsPatch
|
||||
import app.revanced.patches.music.utils.videotype.VideoTypeHookPatch
|
||||
import app.revanced.util.exception
|
||||
import app.revanced.util.getTargetIndex
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
@ -24,7 +25,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
description = "Adds an option to change the player background to light grey to reduce eye strain.",
|
||||
dependencies = [
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
SharedResourceIdPatch::class,
|
||||
VideoTypeHookPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
@ -97,6 +99,12 @@ object ZenModePatch : BytecodePatch(
|
||||
"revanced_enable_zen_mode",
|
||||
"false"
|
||||
)
|
||||
SettingsPatch.addMusicPreference(
|
||||
CategoryType.PLAYER,
|
||||
"revanced_enable_zen_mode_podcast",
|
||||
"false",
|
||||
"revanced_enable_zen_mode"
|
||||
)
|
||||
|
||||
}
|
||||
}
|
@ -75,6 +75,8 @@ Some features may not work properly in the old player layout."</string>
|
||||
<string name="revanced_enable_save_video_quality_title">Enable save video quality</string>
|
||||
<string name="revanced_enable_swipe_to_dismiss_mini_player_summary">Enables swipe down to dismiss miniplayer.</string>
|
||||
<string name="revanced_enable_swipe_to_dismiss_mini_player_title">Enable swipe to dismiss miniplayer</string>
|
||||
<string name="revanced_enable_zen_mode_podcast_summary">Zen mode is also applied to podcasts.</string>
|
||||
<string name="revanced_enable_zen_mode_podcast_title">Enable zen mode in podcasts</string>
|
||||
<string name="revanced_enable_zen_mode_summary">Changes the player background to light grey to reduce eye strain.</string>
|
||||
<string name="revanced_enable_zen_mode_title">Enable zen mode</string>
|
||||
<string name="revanced_extended_settings_export_as_file">Export settings to file</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user