mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-13 05:37:48 +02:00
refactor(ui_tweaks): hide suggested section
This commit is contained in:
@ -603,7 +603,7 @@
|
|||||||
"hide_story_sections": {
|
"hide_story_sections": {
|
||||||
"hide_friend_suggestions": "Hide friend suggestions",
|
"hide_friend_suggestions": "Hide friend suggestions",
|
||||||
"hide_friends": "Hide friends section",
|
"hide_friends": "Hide friends section",
|
||||||
"hide_following": "Hide following section",
|
"hide_suggested": "Hide suggested section",
|
||||||
"hide_for_you": "Hide For You section"
|
"hide_for_you": "Hide For You section"
|
||||||
},
|
},
|
||||||
"home_tab": {
|
"home_tab": {
|
||||||
|
@ -22,7 +22,7 @@ class UserInterfaceTweaks : ConfigContainer() {
|
|||||||
val mapFriendNameTags = boolean("map_friend_nametags")
|
val mapFriendNameTags = boolean("map_friend_nametags")
|
||||||
val streakExpirationInfo = boolean("streak_expiration_info")
|
val streakExpirationInfo = boolean("streak_expiration_info")
|
||||||
val hideStorySections = multiple("hide_story_sections",
|
val hideStorySections = multiple("hide_story_sections",
|
||||||
"hide_friend_suggestions", "hide_friends", "hide_following", "hide_for_you")
|
"hide_friend_suggestions", "hide_friends", "hide_suggested", "hide_for_you")
|
||||||
val hideUiComponents = multiple("hide_ui_components",
|
val hideUiComponents = multiple("hide_ui_components",
|
||||||
"hide_voice_record_button",
|
"hide_voice_record_button",
|
||||||
"hide_stickers_button",
|
"hide_stickers_button",
|
||||||
|
@ -103,7 +103,7 @@ class UITweaks : Feature("UITweaks", loadParams = FeatureLoadParams.ACTIVITY_CRE
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hideStorySections.contains("hide_following") && (viewId == getIdentifier("df_small_story", "id"))
|
if (hideStorySections.contains("hide_suggested") && (viewId == getIdentifier("df_small_story", "id"))
|
||||||
) {
|
) {
|
||||||
hideStorySection(event)
|
hideStorySection(event)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user