mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 05:07:46 +02:00
feat(core/ui): hide settings gear option
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user