feat(YouTube/Hide layout components): add Hide videos with low views settings

This commit is contained in:
inotia00
2023-11-11 23:38:59 +09:00
parent 1ea0780723
commit 628ae11721
4 changed files with 11 additions and 5 deletions

View File

@ -47,6 +47,7 @@ object LayoutComponentsPatch : BytecodePatch() {
LithoFilterPatch.addFilter("$COMPONENTS_PATH/CommunityPostFilter;")
LithoFilterPatch.addFilter("$COMPONENTS_PATH/LayoutComponentsFilter;")
LithoFilterPatch.addFilter("$COMPONENTS_PATH/LayoutComponentsUniversalFilter;")
LithoFilterPatch.addFilter("$COMPONENTS_PATH/LowViewsFilter;")
/**
* Add settings

View File

@ -70,14 +70,14 @@ internal object ResourceHelper {
updatePatchStatusSettings("Header", headerName)
}
internal fun ResourceContext.updatePatchStatusLabel(appName: String) {
updatePatchStatusSettings("Label", appName)
}
internal fun ResourceContext.updatePatchStatusIcon(iconName: String) {
updatePatchStatusSettings("Icon", "@string/revanced_icon_$iconName")
}
internal fun ResourceContext.updatePatchStatusLabel(appName: String) {
updatePatchStatusSettings("Label", appName)
}
internal fun ResourceContext.updatePatchStatusTheme(themeName: String) {
updatePatchStatusSettings("Theme", themeName)
}