commit 82658d3ad9580aa5b2376e37762308977da12b19 parent 9cb9bd7a26c3ebeab1a26e6b2d52cdb7edc4c46b Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:31:00 +0200 refactor(ui_tweaks): hide suggested section Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/src/main/assets/lang/en_US.json b/core/src/main/assets/lang/en_US.json @@ -603,7 +603,7 @@ "hide_story_sections": { "hide_friend_suggestions": "Hide friend suggestions", "hide_friends": "Hide friends section", - "hide_following": "Hide following section", + "hide_suggested": "Hide suggested section", "hide_for_you": "Hide For You section" }, "home_tab": { diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/config/impl/UserInterfaceTweaks.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/config/impl/UserInterfaceTweaks.kt @@ -22,7 +22,7 @@ class UserInterfaceTweaks : ConfigContainer() { val mapFriendNameTags = boolean("map_friend_nametags") val streakExpirationInfo = boolean("streak_expiration_info") 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", "hide_voice_record_button", "hide_stickers_button", diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/features/impl/ui/UITweaks.kt b/core/src/main/kotlin/me/rhunk/snapenhance/features/impl/ui/UITweaks.kt @@ -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) }