Skip to content

Commit

Permalink
fix(Casting): Wifi Casting now will worked normally
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed Feb 2, 2024
1 parent 1bf0b34 commit 3fc28ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object HideCastButtonPatch : BytecodePatch(
SettingsPatch.addMusicPreference(
CategoryType.GENERAL,
"revanced_hide_cast_button",
"true"
"false"
)

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatc
)
@Suppress("unused")
object PackageNamePatch : ResourcePatch() {
private const val CLONE_PACKAGE_NAME_YOUTUBE = "com.rvx.android.youtube"
private const val DEFAULT_PACKAGE_NAME_YOUTUBE = "app.rvx.android.youtube"
private const val CLONE_PACKAGE_NAME_YOUTUBE = "app.rvx.android.youtube"
private const val DEFAULT_PACKAGE_NAME_YOUTUBE = "com.google.android.rvx"

private const val CLONE_PACKAGE_NAME_YOUTUBE_MUSIC = "com.rvx.android.apps.youtube.music"
private const val DEFAULT_PACKAGE_NAME_YOUTUBE_MUSIC = "app.rvx.android.apps.youtube.music"
private const val CLONE_PACKAGE_NAME_YOUTUBE_MUSIC = "app.rvx.android.youtube.music"
private const val DEFAULT_PACKAGE_NAME_YOUTUBE_MUSIC = "com.google.android.rvx.music"

internal val PackageNameYouTube by stringPatchOption(
key = "PackageNameYouTube",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
<SwitchPreference android:title="@string/revanced_hide_auto_player_popup_panels_title" android:key="revanced_hide_auto_player_popup_panels" android:defaultValue="true" android:summaryOn="@string/revanced_hide_auto_player_popup_panels_summary_on" android:summaryOff="@string/revanced_hide_auto_player_popup_panels_summary_off" />SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS -->

<!-- SETTINGS: HIDE_CAST_BUTTON
<SwitchPreference android:title="@string/revanced_hide_cast_button_title" android:key="revanced_hide_cast_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_cast_button_summary_on" android:summaryOff="@string/revanced_hide_cast_button_summary_off" />SETTINGS: HIDE_CAST_BUTTON -->
<SwitchPreference android:title="@string/revanced_hide_cast_button_title" android:key="revanced_hide_cast_button" android:defaultValue="false" android:summaryOn="@string/revanced_hide_cast_button_summary_on" android:summaryOff="@string/revanced_hide_cast_button_summary_off" />SETTINGS: HIDE_CAST_BUTTON -->

<!-- SETTINGS: HIDE_CATEGORY_BAR
<SwitchPreference android:title="@string/revanced_hide_category_bar_in_feed_title" android:key="revanced_hide_category_bar_in_feed" android:defaultValue="false" android:summaryOn="@string/revanced_hide_category_bar_summary_on" android:summaryOff="@string/revanced_hide_category_bar_summary_off" />
Expand Down

0 comments on commit 3fc28ff

Please sign in to comment.