fix(YouTube/Settings): header for Experimental Flags is added even though Experimental Flags is empty

This commit is contained in:
inotia00 2023-10-18 10:18:11 +09:00
parent 721375aa3c
commit c1d8dc40f4
7 changed files with 11 additions and 5 deletions

View File

@ -43,6 +43,7 @@ object ForceOpusCodecPatch : AbstractOpusCodecsPatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: ENABLE_OPUS_CODEC"
)
)

View File

@ -117,6 +117,7 @@ object ForceVideoCodecPatch : BytecodePatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: ENABLE_VIDEO_CODEC"
)
)

View File

@ -101,6 +101,7 @@ object LayoutSwitchPatch : BytecodePatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: LAYOUT_SWITCH"
)
)

View File

@ -61,6 +61,7 @@ object QUICProtocolPatch : BytecodePatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: DISABLE_QUIC_PROTOCOL"
)
)

View File

@ -50,6 +50,7 @@ object SpoofAppVersionPatch : AbstractVersionSpoofPatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: SPOOF_APP_VERSION"
)
)

View File

@ -190,6 +190,7 @@ object SpoofPlayerParameterPatch : BytecodePatch(
*/
SettingsPatch.addPreference(
arrayOf(
"SETTINGS: EXPERIMENTAL_FLAGS",
"SETTINGS: SPOOF_PLAYER_PARAMETER"
)
)

View File

@ -280,7 +280,9 @@
<intent android:targetPackage="com.mgoogle.android.gms" android:targetClass="org.microg.gms.ui.SettingsActivity" />
</Preference>PREFERENCE: MICROG_SETTINGS -->
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_experimental_flag" />
<!-- SETTINGS: EXPERIMENTAL_FLAGS
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_experimental_flag" />SETTINGS: EXPERIMENTAL_FLAGS -->
<!-- SETTINGS: DISABLE_QUIC_PROTOCOL
<SwitchPreference android:title="@string/revanced_disable_quic_protocol_title" android:key="revanced_disable_quic_protocol" android:defaultValue="false" android:summary="@string/revanced_disable_quic_protocol_summary" />SETTINGS: DISABLE_QUIC_PROTOCOL -->
@ -288,9 +290,7 @@
<SwitchPreference android:title="@string/revanced_enable_opus_codec_title" android:key="revanced_enable_opus_codec" android:defaultValue="false" android:summary="@string/revanced_enable_opus_codec_summary" />SETTINGS: ENABLE_OPUS_CODEC -->
<!-- SETTINGS: LAYOUT_SWITCH
<SwitchPreference android:title="@string/revanced_enable_phone_layout_title" android:key="revanced_enable_phone_layout" android:summary="@string/revanced_enable_phone_layout_summary" android:defaultValue="false" />SETTINGS: LAYOUT_SWITCH -->
<!-- SETTINGS: LAYOUT_SWITCH
<SwitchPreference android:title="@string/revanced_enable_phone_layout_title" android:key="revanced_enable_phone_layout" android:summary="@string/revanced_enable_phone_layout_summary" android:defaultValue="false" />
<SwitchPreference android:title="@string/revanced_enable_tablet_layout_title" android:key="revanced_enable_tablet_layout" android:summary="@string/revanced_enable_tablet_layout_summary" android:defaultValue="false" />SETTINGS: LAYOUT_SWITCH -->
<!-- SETTINGS: ENABLE_VIDEO_CODEC
@ -424,8 +424,8 @@
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_others" />
<Preference android:title="Custom double tap length" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="Hide double tap overlay filter" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="Disable pip notification" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="Hide double tap overlay filter" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="Hide tooltip content" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="Icons" android:summary="@string/revanced_icons_default" android:selectable="false"/>
<Preference android:title="Labels" android:summary="@string/revanced_labels_default" android:selectable="false"/>