From 6af5fdba70560adea546d9692bc1c24cb67df577 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:16:00 +0900 Subject: [PATCH] fix build error --- .../revanced/patches/music/utils/integrations/Constants.kt | 2 ++ .../returnyoutubeusername/ReturnYouTubeUsernamePatch.kt | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/music/utils/integrations/Constants.kt b/src/main/kotlin/app/revanced/patches/music/utils/integrations/Constants.kt index 762b76e16..4887e8a0b 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/integrations/Constants.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/integrations/Constants.kt @@ -24,4 +24,6 @@ object Constants { const val GENERAL_CLASS_DESCRIPTOR = "$GENERAL_PATH/GeneralPatch;" const val NAVIGATION_CLASS_DESCRIPTOR = "$NAVIGATION_PATH/NavigationPatch;" const val PLAYER_CLASS_DESCRIPTOR = "$PLAYER_PATH/PlayerPatch;" + + const val PATCH_STATUS_CLASS_DESCRIPTOR = "$UTILS_PATH/PatchStatus;" } \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/music/utils/returnyoutubeusername/ReturnYouTubeUsernamePatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/returnyoutubeusername/ReturnYouTubeUsernamePatch.kt index ea161680a..1870d0cbe 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/returnyoutubeusername/ReturnYouTubeUsernamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/returnyoutubeusername/ReturnYouTubeUsernamePatch.kt @@ -25,6 +25,11 @@ object ReturnYouTubeUsernamePatch : BaseBytecodePatch( "revanced_return_youtube_username_enabled", "false" ) + SettingsPatch.addPreferenceWithIntent( + CategoryType.RETURN_YOUTUBE_USERNAME, + "revanced_return_youtube_username_display_format", + "revanced_return_youtube_username_enabled" + ) SettingsPatch.addPreferenceWithIntent( CategoryType.RETURN_YOUTUBE_USERNAME, "revanced_return_youtube_username_youtube_data_api_v3_developer_key",