mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-09 11:04:36 +02:00
feat(music): add enable-debug-logging
patch
This commit is contained in:
parent
13b8670391
commit
93dcba2582
@ -0,0 +1,33 @@
|
|||||||
|
package app.revanced.patches.music.misc.debugging.patch
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Description
|
||||||
|
import app.revanced.patcher.annotation.Name
|
||||||
|
import app.revanced.patcher.annotation.Version
|
||||||
|
import app.revanced.patcher.data.ResourceContext
|
||||||
|
import app.revanced.patcher.patch.PatchResult
|
||||||
|
import app.revanced.patcher.patch.PatchResultSuccess
|
||||||
|
import app.revanced.patcher.patch.ResourcePatch
|
||||||
|
import app.revanced.patcher.patch.annotations.DependsOn
|
||||||
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
|
import app.revanced.patches.music.utils.annotations.MusicCompatibility
|
||||||
|
import app.revanced.patches.music.utils.settings.resource.patch.SettingsPatch
|
||||||
|
import app.revanced.util.enum.CategoryType
|
||||||
|
|
||||||
|
@Patch(false)
|
||||||
|
@Name("enable-debug-logging")
|
||||||
|
@Description("Adds debugging options.")
|
||||||
|
@DependsOn([SettingsPatch::class])
|
||||||
|
@MusicCompatibility
|
||||||
|
@Version("0.0.1")
|
||||||
|
class DebuggingPatch : ResourcePatch {
|
||||||
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
|
|
||||||
|
SettingsPatch.addMusicPreference(
|
||||||
|
CategoryType.MISC,
|
||||||
|
"revanced_enable_debug_logging",
|
||||||
|
"false"
|
||||||
|
)
|
||||||
|
|
||||||
|
return PatchResultSuccess()
|
||||||
|
}
|
||||||
|
}
|
@ -16,6 +16,8 @@
|
|||||||
<string name="revanced_enable_color_match_player_title">Enable color match player</string>
|
<string name="revanced_enable_color_match_player_title">Enable color match player</string>
|
||||||
<string name="revanced_enable_compact_dialog_summary">Enable compact dialog on phone.</string>
|
<string name="revanced_enable_compact_dialog_summary">Enable compact dialog on phone.</string>
|
||||||
<string name="revanced_enable_compact_dialog_title">Enable compact dialog</string>
|
<string name="revanced_enable_compact_dialog_title">Enable compact dialog</string>
|
||||||
|
<string name="revanced_enable_debug_logging_summary">Prints the debug log</string>
|
||||||
|
<string name="revanced_enable_debug_logging_title">Enable debug logging</string>
|
||||||
<string name="revanced_enable_dismiss_queue_summary">Add dismiss queue to flyout menu. (YT Music v6.04.51+)</string>
|
<string name="revanced_enable_dismiss_queue_summary">Add dismiss queue to flyout menu. (YT Music v6.04.51+)</string>
|
||||||
<string name="revanced_enable_dismiss_queue_title">Enable dismiss queue</string>
|
<string name="revanced_enable_dismiss_queue_title">Enable dismiss queue</string>
|
||||||
<string name="revanced_enable_force_minimized_player_summary">Keep player permanently minimized even if another track is played.</string>
|
<string name="revanced_enable_force_minimized_player_summary">Keep player permanently minimized even if another track is played.</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user