commit fe8b5ab289502dda43b3f3e2517485add083909b
parent beb52174047f08029e3d8cd106cb61deb61714ca
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Sun, 6 Oct 2024 11:48:36 +0200
fix(core/settings_menu): remove inapp SnapEnhance title
On devices with a smaller dpi, the other buttons also triggered the menu without clicking on the title
Diffstat:
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/ui/menu/impl/SettingsMenu.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/ui/menu/impl/SettingsMenu.kt
@@ -7,19 +7,12 @@ import me.rhunk.snapenhance.core.ui.menu.AbstractMenu
import me.rhunk.snapenhance.core.util.hook.HookStage
import me.rhunk.snapenhance.core.util.hook.hook
import me.rhunk.snapenhance.core.util.ktx.getId
-import me.rhunk.snapenhance.core.util.ktx.getIdentifier
class SettingsMenu : AbstractMenu() {
private val hovaHeaderSearchIconId by lazy {
context.resources.getId("hova_header_search_icon")
}
- private val ngsChatLabel by lazy {
- context.resources.run {
- getString(getIdentifier("ngs_chat_label", "string"))
- }
- }
-
override fun init() {
context.androidContext.classLoader.loadClass("com.snap.ui.view.SnapFontTextView").hook("setText", HookStage.BEFORE) { param ->
val view = param.thisObject<View>()
@@ -29,10 +22,6 @@ class SettingsMenu : AbstractMenu() {
context.bridgeClient.openOverlay(OverlayType.SETTINGS)
}
}
-
- if (param.argNullable<String>(0) == ngsChatLabel) {
- param.setArg(0, "SnapEnhance")
- }
}
}
}