mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-06 09:34:37 +02:00
feat(YouTube/Shorts components): remove Hide disabled comments button
setting https://github.com/inotia00/ReVanced_Extended/issues/2127
This commit is contained in:
parent
0484078144
commit
eafe50ba7a
@ -299,14 +299,12 @@ object ShortsComponentPatch : BaseBytecodePatch(
|
||||
/**
|
||||
* Add settings
|
||||
*/
|
||||
var settingArray = arrayOf(
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE_SCREEN: SHORTS",
|
||||
"SETTINGS: SHORTS_COMPONENTS"
|
||||
)
|
||||
if (SettingsPatch.upward1834) {
|
||||
settingArray += "SETTINGS: HIDE_SHORTS_COMMENTS_DISABLED_BUTTON"
|
||||
}
|
||||
SettingsPatch.addPreference(settingArray)
|
||||
)
|
||||
|
||||
SettingsPatch.updatePatchStatus(this)
|
||||
}
|
||||
|
@ -1034,9 +1034,6 @@ Limitation: Official headers in search results will be hidden."</string>
|
||||
<string name="revanced_hide_shorts_comments_button_title">Hide Comments button</string>
|
||||
<string name="revanced_hide_shorts_comments_button_summary_on">Comments button is hidden.</string>
|
||||
<string name="revanced_hide_shorts_comments_button_summary_off">Comments button is shown.</string>
|
||||
<string name="revanced_hide_shorts_comments_disabled_button_title">Hide disabled comments button</string>
|
||||
<string name="revanced_hide_shorts_comments_disabled_button_summary_on">Disabled comments button or with label \"0\" is hidden.</string>
|
||||
<string name="revanced_hide_shorts_comments_disabled_button_summary_off">Disabled comments button or with label \"0\" is shown.</string>
|
||||
<string name="revanced_hide_shorts_remix_button_title">Hide Remix button</string>
|
||||
<string name="revanced_hide_shorts_remix_button_summary_on">Remix button is hidden.</string>
|
||||
<string name="revanced_hide_shorts_remix_button_summary_off">Remix button is shown.</string>
|
||||
|
@ -448,12 +448,7 @@
|
||||
<PreferenceCategory android:title="@string/revanced_preference_category_action_buttons" android:layout="@layout/revanced_settings_preferences_category"/>
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_like_button_title" android:key="revanced_hide_shorts_like_button" android:summaryOn="@string/revanced_hide_shorts_like_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_like_button_summary_off" />
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_dislike_button_title" android:key="revanced_hide_shorts_dislike_button" android:summaryOn="@string/revanced_hide_shorts_dislike_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_dislike_button_summary_off" />
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_comments_button_title" android:key="revanced_hide_shorts_comments_button" android:summaryOn="@string/revanced_hide_shorts_comments_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_comments_button_summary_off" />SETTINGS: SHORTS_COMPONENTS -->
|
||||
|
||||
<!-- SETTINGS: HIDE_SHORTS_COMMENTS_DISABLED_BUTTON
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_comments_disabled_button_title" android:key="revanced_hide_shorts_comments_disabled_button" android:summaryOn="@string/revanced_hide_shorts_comments_disabled_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_comments_disabled_button_summary_off" />SETTINGS: HIDE_SHORTS_COMMENTS_DISABLED_BUTTON -->
|
||||
|
||||
<!-- SETTINGS: SHORTS_COMPONENTS
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_comments_button_title" android:key="revanced_hide_shorts_comments_button" android:summaryOn="@string/revanced_hide_shorts_comments_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_comments_button_summary_off" />
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_remix_button_title" android:key="revanced_hide_shorts_remix_button" android:summaryOn="@string/revanced_hide_shorts_remix_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_remix_button_summary_off" />
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_share_button_title" android:key="revanced_hide_shorts_share_button" android:summaryOn="@string/revanced_hide_shorts_share_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_share_button_summary_off" />
|
||||
<SwitchPreference android:title="@string/revanced_hide_shorts_sound_button_title" android:key="revanced_hide_shorts_sound_button" android:summaryOn="@string/revanced_hide_shorts_sound_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_sound_button_summary_off" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user