feat(core/ui): hide settings gear option

This commit is contained in:
rhunk
2023-11-18 11:06:22 +01:00
parent d147dc5ce0
commit f16eb3a009
3 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,7 @@ import me.rhunk.snapenhance.core.util.ktx.getStyledAttributes
@SuppressLint("DiscouragedApi")
class SettingsGearInjector : AbstractMenu() {
override fun inject(parent: ViewGroup, view: View, viewConsumer: (View) -> Unit) {
if (context.config.userInterface.hideSettingsGear.get()) return
val firstView = (view as ViewGroup).getChildAt(0)
val ngsHovaHeaderSearchIconBackgroundMarginLeft = context.resources.getDimens("ngs_hova_header_search_icon_background_margin_left")