From 82658d3ad9580aa5b2376e37762308977da12b19 Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:31:00 +0200 Subject: [PATCH] refactor(ui_tweaks): hide suggested section --- core/src/main/assets/lang/en_US.json | 2 +- .../rhunk/snapenhance/core/config/impl/UserInterfaceTweaks.kt | 2 +- .../kotlin/me/rhunk/snapenhance/features/impl/ui/UITweaks.kt | 2 +- 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 index 208c0bf2..9e1eb27a 100644 --- 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 index 990d16e7..72b9dac1 100644 --- 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 index 474290e0..c957e9df 100644 --- 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) }